Talk:Import Root Certificate

From NSIS Wiki
Jump to navigationJump to search

Great bit of code, I'm trying to modify the windows code to add a user's private certificate but I can't seem to figure it out. If you change the cert to a p12 type it not only fails but crashes at the "CertAddCertificateContextToStore" command. My thought is that the code is not opening the correct store, but i'm unable to figure out where you got the settings for some of the variables such as ${CERT_SYSTEM_STORE_LOCAL_MACHINE} which I'm trying to set to CERT_SYSTEM_STORE_CURRENT_USER

Any suggestions you might have as to how to proceed would be great!

Mike