Using makecert I have now created key pair test.pvk and test.cer
The command line for this was:
And I already know how to load in the certificate:Code:makecert -r -n "CN=test1" -sky exchange -sv test.pvk test.cer
but there is no way I can see to load a private key from a separate file.Code:dim Cert as new capicom.certificate cert.load "test.cer"
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.


Reply With Quote