summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-02-05 16:50:30 +0100
committerMichael Tänzer <neo@nhng.de>2014-02-05 16:50:30 +0100
commita14c8f605894bf65ccb6f644703d16ecef2e474c (patch)
tree9c53a1a4d9a893b76921ecf3848829dc51b20291
parentd810496e718e2545565e7b05687b763bdc628b92 (diff)
parent036f7b674615b72ae0119a5f5a403f95fb7ad977 (diff)
downloadcacert-devel-a14c8f605894bf65ccb6f644703d16ecef2e474c.tar.gz
cacert-devel-a14c8f605894bf65ccb6f644703d16ecef2e474c.tar.xz
cacert-devel-a14c8f605894bf65ccb6f644703d16ecef2e474c.zip
Merge branch 'bug-1218' into release
-rw-r--r--www/keygenIE.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/keygenIE.js b/www/keygenIE.js
index be2d184..4c15b23 100644
--- a/www/keygenIE.js
+++ b/www/keygenIE.js
@@ -247,6 +247,7 @@ var CAcert_keygen_IE = function () {
privateKey.Algorithm = algorithmOid;
privateKey.Length = bits;
privateKey.KeyUsage = 0xffffff; // XCN_NCRYPT_ALLOW_ALL_USAGES
+ privateKey.ExportPolicy = 0x1; // XCN_NCRYPT_ALLOW_EXPORT_FLAG
var request = factory.CreateObject("X509Enrollment.CX509CertificateRequestPkcs10");
request.InitializeFromPrivateKey(
@@ -545,7 +546,8 @@ var CAcert_keygen_IE = function () {
}
cenroll.GenKeyFlags = bits << 16; // keysize is encoded in the uper 16 bits
- //cenroll.GenKeyFlags = cenroll.GenKeyFlags | 0x1; //CRYPT_EXPORTABLE
+ // Allow exporting the private key
+ cenroll.GenKeyFlags = cenroll.GenKeyFlags | 0x1; //CRYPT_EXPORTABLE
generatingKeyNotice.style.display = "";