I'm created pfx certificate using by certEntroll when I imported on windows 10 it's imported successfuly but when i tried on windwos 7 i got an error "The password you entered is incorrect" How do fix it? This is part of code how i create PFX from CA
var objCertRequest = new CCertRequest();
var iDisposition = objCertRequest.RetrievePending(requestId, caIP + @"\" + caNAme);
if (iDisposition == CR_DISP_ISSUED)
{
var cert = objCertRequest.GetCertificate(CR_OUT_BASE64 | CR_OUT_CHAIN);
var objEnroll = new CX509Enrollment();
objEnroll.Initialize(X509CertificateEnrollmentContext.ContextUser);
objEnroll.InstallResponse(
InstallResponseRestrictionFlags.AllowUntrustedRoot,
cert,
EncodingType.XCN_CRYPT_STRING_BASE64, password);
var certResponce = objEnroll.CreatePFX(password, PFXExportOptions.PFXExportChainNoRoot);
}