Bug 1218: Exportable flag needs to be explicitly set on Win XP bug-1218
authorMichael Tänzer <neo@nhng.de>
Wed, 20 Nov 2013 11:20:21 +0000 (12:20 +0100)
committerMichael Tänzer <neo@nhng.de>
Wed, 20 Nov 2013 11:20:21 +0000 (12:20 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
www/keygenIE.js

index 990be35..4c15b23 100644 (file)
@@ -545,11 +545,9 @@ var CAcert_keygen_IE = function () {
                                }
                        }
 
-                       // This is actually the default
-                       //cenroll.GenKeyFlags = cenroll.GenKeyFlags | 0x1; //CRYPT_EXPORTABLE
-
-                       // keysize is encoded in the uper 16 bits
-                       cenroll.GenKeyFlags = cenroll.GenKeyFlags | bits << 16;
+                       cenroll.GenKeyFlags = bits << 16; // keysize is encoded in the uper 16 bits
+                       // Allow exporting the private key
+                       cenroll.GenKeyFlags = cenroll.GenKeyFlags | 0x1; //CRYPT_EXPORTABLE
 
                        generatingKeyNotice.style.display = "";