Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pem

Package Overview
Dependencies
Maintainers
2
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pem - npm Package Compare versions

Comparing version 1.9.6 to 1.9.7

2

lib/pem.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc