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.