summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-03-24 15:03:15 +0100
committerMichael Tänzer <neo@nhng.de>2014-03-24 15:03:15 +0100
commit775f07428a55a7466258efe32627b600862309e4 (patch)
tree666b4bf2f4e3d3ffd524a36a581ddc5831b07750 /www
parentb97cf0e899dcdf027b04092e14130ac0e49ea348 (diff)
parent0d791f450e65657cfd615471cf31dfc0ba5d9b37 (diff)
downloadcacert-devel-775f07428a55a7466258efe32627b600862309e4.tar.gz
cacert-devel-775f07428a55a7466258efe32627b600862309e4.tar.xz
cacert-devel-775f07428a55a7466258efe32627b600862309e4.zip
Merge branch 'release' into bug-1138
Diffstat (limited to 'www')
-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 = "";