Package Exports
- ssl
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ssl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
VERIFY-SSL
SSL certificate verification for node.js
Docs
You can check out openssl documentation at openSSL.
Simple Usage
var ssl = require('ssl');
var cert = '';
var key = 'key.pem';
var pass = 'abcdefg';
var str_cert = 'encrypted certificate';
var opts {};
opts.fileName = 'cert.pem';
ssl.toFile(str_cert, function(err, file) {
if(err) {
return console.log(err)
}
cert = file;
});
ssl.verify(cert, function(err, status) {
if(err) {
return console.log(err);
}
return console.log('this certificate is ok');
});
var opts = {};
opts.newkeyName = 'newKey.pem';
ssl.removePassphrase(cert, pass, opts, function(err) {
if(err) {
return console.log(err);
}
return console.log('passphrase removed');
});