AcquireCredentialsHandle returns SEC_E_INTERNAL_ERROR
-
//I am working in VC 6. i have certificate file "FileStore.p7b" and able to find the certificate in the file (CertFindCertificateInStore returns a context). Unfortunately, my calls to AcquireCredentialsHandle always return SEC_E_INTERNAL_ERROR. (I am using the UNISP_NAME package) //to include private key info in my certificate context i used CertSetCertificateContextProperty //and set it CERT_PVK_FILE_PROP_ID ie., my private key is present in a file("server.key"). //This function doesnot return any error. i want to know that private key file("server.key") has to be in .pvk format otherwise AcquireCerdentialshandle will throw SEC_E_INTERNAL_ERROR //code if(!( CertSetCertificateContextProperty(m_pCertContext, CERT_PVK_FILE_PROP_ID, NULL, pvData)))