Accessing Private Key causes Windows to show Dialog Box – How to Suppress
Question: Calling CkXmlDSigGen.SetX509Cert causes Windows to show a dialog box requesting validation. Is it possible to avoid the dialog box?
Answer: Yes. The reason for displaying the dialog box is because the cert + private key was imported with the option to enable strong private key protection. Here’s a screenshot of the Window Certificate Import Wizard showing the two checkboxes: One for strong private key protection (meaning show a dialog box), and the other for allowing the private key to be exported. The solution is to remote the cert + private key from the system, and re-import with the enable strong private key protection checkbox unchecked.
admin
0
Tags :