selfsigned
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -163,4 +163,8 @@ var forge = require('node-forge'); | ||
var keyPair = forge.pki.rsa.generateKeyPair(keySize); | ||
var keyPair = options.keyPair ? { | ||
privateKey: forge.pki.privateKeyFromPem(options.keyPair.privateKey), | ||
publicKey: forge.pki.publicKeyFromPem(options.keyPair.publicKey) | ||
} : forge.pki.rsa.generateKeyPair(keySize); | ||
return generatePem(keyPair); | ||
}; |
{ | ||
"name": "selfsigned", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Generate self signed certificates private and public keys", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,2 +52,4 @@ Generate a self signed x509 certificate from node.js. | ||
> You can avoid key pair generation specifying your own keys (`{ keyPair: { publicKey: '-----BEGIN PUBLIC KEY-----...', privateKey: '-----BEGIN RSA PRIVATE KEY-----...' }`) | ||
### Generate Client Certificates | ||
@@ -54,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19814
243
82
1