I'm using VB6 to install a certificate under Certificates (Local Computer) \ Trusted Root Certification Authorities. I'd like it to be silent, but if there's the usual warning message, that's OK.
I tried this code:
Dim cc As New CAPICOM.Store
Dim c As New Certificate
c.Load "C:\Zap\cacert.crt"
cc.Open CAPICOM_LOCAL_MACHINE_STOR
E, "Trusted Root Certification Authorities", CAPICOM_STORE_OPEN_READ_WR
ITE
cc.Add c
cc.Close
What this did was create ANOTHER folder called "Trusted Root Certification Authorities" containing a single certificate (the one I added). The real "Trusted Root Certification Authorities" folder didn't contain the certificate.
Any suggestions for how to install a Trusted Root Certification Authority using CAPICOM, preferably silently?
Thanks for your time,
-blowfly
Start Free Trial