Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

How do I load a private-key file in CAPICOM in VB6?

$
0
0
Using makecert I have now created key pair test.pvk and test.cer
The command line for this was:
Code:

makecert -r -n "CN=test1" -sky exchange -sv test.pvk test.cer
And I already know how to load in the certificate:
Code:

dim Cert as new capicom.certificate
cert.load "test.cer"

but there is no way I can see to load a private key from a separate file.
If you have a private key and public key together already installed on the computer in what is called a Store, then the private key is internally associated with the public key, but I can find no way of directly loading the private key file test.pvk into CAPICOM in VB6.

If someone knows how to do this, please let me know, thanks in advance.

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>