Socket
Socket
Sign inDemoInstall

ssl

Package Overview
Dependencies
0
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ssl

Verification of SSL certificates


Version published
Weekly downloads
194
increased by29.33%
Maintainers
3
Install size
12.2 kB
Created
Weekly downloads
 

Readme

Source

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!');
});

Keywords

FAQs

Last updated on 14 Aug 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc