Allow private keys on Vista to be exportable encrypted. (Not in plaintext)

pull/1/head
root 16 years ago
parent 597c8728a5
commit 2cd48b9e16

@ -107,6 +107,7 @@ Function CSR(keyflags)
// "Microsoft Enhanced RSA and AES Cryptographic Provider"
objPrivateKey.ProviderType = "24"
objPrivateKey.KeySpec = "1"
objPrivateKey.ExportPolicy = 1
objRequest.InitializeFromPrivateKey 1, objPrivateKey, ""
Set objDN = g_objClassFactory.CreateObject("X509Enrollment.CX500DistinguishedName")
objDN.Encode("CN=CAcertRequest")

Loading…
Cancel
Save