When I import this PKCS12 file in Windows XP with the private key marked exportable, and later export this certificate with the private key. It works perfect.
With Windows 7 it also seems to work perfect, but when I analyse the generated pfx-file the private key is not exported.
I found out...
I am trying to install a certificate (.pfx) from a VB script on Vista. This script in turn is invoked by installshield.
iStoreLocation = CAPICOM_LOCAL_MACHINE_STORE
strStoreName = "ROOT"
Dim Store, OpenMode, KeyStorageFlag
OpenMode = CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED OR...