JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 183
  • Score
    100M100P100Q91301F
  • License MIT

Verification of SSL certificates

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

Build Status

Docs

This module uses the OpenSSL command line utility - documentation can be found at openssl.org.

Usage

var ssl = require('ssl')
  , cert = 'encrypted certificate'
  , caFile = 'file.ca'
  , key = 'key.pem'
  , pass = 'abcdefg';

ssl.toFile(cert, { fileName: 'cert.pem' } function(err, file) {
  if (err) return console.error(err)
  console.log('Wrote string content to file %s', file);
});

ssl.verify(caFile, cert, function(err, status) {
  if (err) return console.error(err);
  console.log(status);
});

ssl.removePassphrase(cert, pass, { newKeyName: 'opencert.pem' }, function(err) {
  if (err) return console.error(err);
  console.log('passphrase removed!');
});