New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-openssl-cert

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-openssl-cert - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

test/cert.crt

5

ca_example.js

@@ -123,2 +123,7 @@ const node_openssl = require('./index.js');

//console.log(cmd);
openssl.createPKCS7(new Array(crt, cacrt), function(err, pkcs7, command) {
console.log(command);
console.log(pkcs7);
});
return;
openssl.createPKCS12(crt, key, 'test', false, cacrt, function(err, pfx, command) {

@@ -125,0 +130,0 @@ if(err) {

@@ -701,2 +701,25 @@ 'use strict';

this.createPKCS7 = function(certs, callback) {
//console.log(typeof(certs));
var cmd = ['crl2pkcs7 -nocrl']
for(var i = 0; i <= certs.length - 1; i++) {
var name = tmp.tmpNameSync();
fs.writeFileSync(name, certs[i]);
cmd.push('-certfile ' + name);
}
runOpenSSLCommand(cmd.join(' '), function(err, out) {
if(err) {
//console.log(out.command);
callback(err, out.stdout, {
command: [out.command]
});
} else {
//console.log(out.command);
callback(false, out.stdout, {
command: [out.command]
});
}
});
}
var generatePKCS12 = function(certpath, keypath, passin, passout, capath, callback) {

@@ -703,0 +726,0 @@ tmp.file(function _tempFileCreated(err, pfxpath, fd, cleanupCallback) {

2

package.json
{
"name": "node-openssl-cert",
"version": "0.0.18",
"version": "0.0.19",
"description": "Node.JS OpenSSL wrapper",

@@ -5,0 +5,0 @@ "main": "index.js",

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