Comparing version 1.9.6 to 1.9.7
@@ -837,3 +837,3 @@ 'use strict'; | ||
if (( tmp = certData.match(/Public Key: ([^\n]*)\n/)) && tmp.length > 1) { | ||
if (( tmp = certData.match(/Public[ -]Key: ([^\n]*)\n/)) && tmp.length > 1) { | ||
certValues.publicKeySize = (tmp[1]|| '').replace(/[()]/g,''); | ||
@@ -840,0 +840,0 @@ } |
@@ -12,3 +12,3 @@ { | ||
"description": "Create private keys and certificates with node.js and io.js", | ||
"version": "1.9.6", | ||
"version": "1.9.7", | ||
"repository": { | ||
@@ -15,0 +15,0 @@ "type": "git", |
@@ -107,3 +107,4 @@ 'use strict'; | ||
signatureAlgorithm: 'sha256WithRSAEncryption', | ||
publicKeyAlgorithm: 'rsaEncryption' | ||
publicKeyAlgorithm: 'rsaEncryption', | ||
publicKeySize: '2048 bit' | ||
}; | ||
@@ -123,5 +124,2 @@ | ||
test.ifError(error); | ||
if (data.publicKeySize){ | ||
delete data.publicKeySize; | ||
} | ||
test.deepEqual(data, certInfo); | ||
@@ -226,5 +224,2 @@ test.ok(fs.readdirSync('./tmp').length === 0); | ||
test.ifError(error); | ||
if (data.publicKeySize){ | ||
delete data.publicKeySize; | ||
} | ||
test.deepEqual(data, { | ||
@@ -241,3 +236,4 @@ issuer : {}, | ||
signatureAlgorithm: 'sha256WithRSAEncryption', | ||
publicKeyAlgorithm: 'rsaEncryption' | ||
publicKeyAlgorithm: 'rsaEncryption', | ||
publicKeySize: '2048 bit' | ||
}); | ||
@@ -262,3 +258,4 @@ test.ok(fs.readdirSync('./tmp').length === 0); | ||
signatureAlgorithm: 'sha256WithRSAEncryption', | ||
publicKeyAlgorithm: 'rsaEncryption' | ||
publicKeyAlgorithm: 'rsaEncryption', | ||
publicKeySize: '2048 bit' | ||
}; | ||
@@ -272,5 +269,2 @@ pem.createCSR(Object.create(certInfo), function(error, data) { | ||
test.ifError(error); | ||
if (data.publicKeySize){ | ||
delete data.publicKeySize; | ||
} | ||
test.deepEqual(data, certInfo); | ||
@@ -356,3 +350,4 @@ test.ok(fs.readdirSync('./tmp').length === 0); | ||
signatureAlgorithm: 'sha256WithRSAEncryption', | ||
publicKeyAlgorithm: 'rsaEncryption' | ||
publicKeyAlgorithm: 'rsaEncryption', | ||
publicKeySize: '2048 bit' | ||
}; | ||
@@ -373,5 +368,2 @@ pem.createCertificate(Object.create(certInfo), function(error, data) { | ||
} | ||
if (data.publicKeySize){ | ||
delete data.publicKeySize; | ||
} | ||
@@ -378,0 +370,0 @@ test.deepEqual(data, certInfo); |
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
78643
1651