locked
Certificates Installed programaticaly are not getting loaded after reboot/logout RRS feed

  • Question

  • Hi ,

    We re using the following code to install client certificate

    pfxStore = PFXImportCertStore(&blob, pwstrClientCertPassword, CRYPT_MACHINE_KEYSET | CRYPT_EXPORTABLE);
    
    myStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, 0, CERT_SYSTEM_STORE_CURRENT_USER, L"MY");
    
    while (0 != (pctx = CertEnumCertificatesInStore(pfxStore, pctx))) {
    				
    		// and we try to add it to the store got before with CertOpenStore
    		if (!CertAddCertificateContextToStore(myStore, pctx, CERT_STORE_ADD_NEW, 0)) {
    
    ...........
    ...........
    }

    Certificate gets installed fine, but when I logout-login/reboot the device these certificates are not getting loaded (but I can see them in cert store).

    Same certificate works fine after logout-login/reboot if I install it manually.

    Any hep will be appreciated.



    • Edited by IDM Team Tuesday, February 17, 2015 1:52 PM
    Tuesday, February 17, 2015 1:38 PM