by Tristan [tristanb at mbase dot com dot au] posted on 2005/03/04 |
|
Whenever I try to load a private key from a PEM file I get a dialog box asking the user whether he wants to give access to his private key or not. This seems to be created by the call to the crypt32.dll layer CryptAcquireCertificatePrivateKey method.
Does anybody know how to turn off this dialog; I would like it just to be accepted.
This problem also seems to cause errors when I try to run my program as a service. In this case no dialog appears and the private key is not obtainable; causing my service to fail.
|