Advertisement

02.14.2008 at 10:42PM PST, ID: 23165327
[x]
Attachment Details

How can I install trusted root certification authority using CAPICOM?

Asked by blowfly in Miscellaneous Security, Visual Basic Programming, Secure Socket Layer (SSL) & HTTPS

Tags: Microsoft, CAPICOM, SSL certificates

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_STORE, "Trusted Root Certification Authorities", CAPICOM_STORE_OPEN_READ_WRITE
    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,
-blowflyStart Free Trial
[+][-]02.15.2008 at 01:30AM PST, ID: 20900340

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Security, Visual Basic Programming, Secure Socket Layer (SSL) & HTTPS
Tags: Microsoft, CAPICOM, SSL certificates
Sign Up Now!
Solution Provided By: prafful_nagwani
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.16.2008 at 05:18PM PST, ID: 20912123

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628