I am trying to use only .Net code to create a certificate request and submit the request to our on premise Active Directory PKI certificate authority, and get a certificate back. I have a solution that has been working for a few years, but it uses CERTCLILib and CERTENROLLLib, and I would like to shed […]
- Tags ""); objPkcs10.HashAlgorithm = sha512; //Key Usage Extension objExtensionKeyUsage.Initialize, and get a certificate back. I have a solution that has been working for a few years, and I would like to shed these dependencies and port this code over to .Net 5. These certificates are then imported onto a Yubikey device. W, but I still have a few questions that I haven't been able to figure out. How do I specify the CA and the template to use in the CertificateR, but it uses CERTCLILib and CERTENROLLLib, deviceDetails.CertificateDetails.IssuingCa ); // Check the submission status if (CR_DISP_ISS, deviceDetails.CertificateDetails.TemplateName); // encode the request cmcReq.Encode();, EncodingType.XCN_CRYPT_STRING_BASE64); var sha512 = new CObjectId(); sha512.InitializeFromValue("2.16.840.1., how do I submit that to the CA? I can't find any classes or methods in the System.Security.Cryptography.X509Certificates namespace that accom, I am trying to use only .Net code to create a certificate request and submit the request to our on premise Active Directory PKI certificate a, null, objPublicKey, out string error) { error = ""; // Create all the objects that will be required //var objCertCo, publicKey.Split(new[] { "\r\n" }, request, string request, StringSplitOptions.RemoveEmptyEntries).Where(s => !s.StartsWith("--"))); objPublicKey.InitializeFromEncodedPublicKeyInfo(pub, strRfc822Name); // Set Alternative UPN objUserPrincipalName.InitializeFromString(AlternativeNameType.XCN_CER, strUpn); // Set Alternative Names objAlternativeNames.Add(objRfc822Name);, X500NameFlags.XCN_CERT_NAME_STR_NONE ); // Adding the subject name by using the Distinguished Name object i