You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ssl-self-signed-certificate

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssl-self-signed-certificate

Self-signed SSL certificate for development

0.1.2
latest
Source
npmnpm
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

ssl-self-signed-certificate

Self-signed SSL certificate for development

npm version Travis Coveralls

var signCertificate = require('ssl-self-signed-certificate');

signCertificate('my-passphrase', function (err) {
  // Generated files
  // ./localhost.key
  // ./localhost.crt
  // ./passphrase
});

I requires the openssl binary. For testing it requires curl.

module(passphrase, [options], callback) : undefined

Generates a self-signed SSL certificate. Creates 3 files: key, certificate and passphrase. The passphrase file just contains the passphrase parameter. The callback receives an error as the first argument.

Options:

  • certificateFile - String
    Filename for the certificate. Default is localhost.crt.
  • days - Number
    Expiration time. Default is 365.
  • keyFile - String
    Filename for the key. Default is localhost.key.
  • passphraseFile - String
    Filename for the passphrase. Default is passphrase.

Keywords

ssl

FAQs

Package last updated on 06 Feb 2015

Did you know?

Socket

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