Socket
Socket
Sign inDemoInstall

ssl-self-signed-certificate

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ssl-self-signed-certificate

Self-signed SSL certificate for development


Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Install size
4.65 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 06 Feb 2015

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