Closed
Description
- Version: 10.16.3
- Platform: Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019
- Subsystem:
NodeJS is frozen on RSA key generation with public exponent 3. It works fine in NodeJS v12
const crypto = require("crypto");
const keys = crypto.generateKeyPairSync("rsa", {
modulusLength: 2048,
publicExponent: 3,
publicKeyEncoding: {
format: "der",
type: "spki",
},
privateKeyEncoding: {
format: "der",
type: "pkcs8",
},
});
console.log(keys);