New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ssldebug-dummycert-pmb

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssldebug-dummycert-pmb

A dummy SSL certificate for debugging, wrapped in JSON and a node module.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

ssldebug-dummycert-pmb

A dummy SSL certificate for debugging, wrapped in JSON and a node module.

ssldebug.pem —{pem2json.sed}→ ssldebug.json:

{"key":"-----BEGIN RSA PRIVATE KEY-----\n…\n-----END RSA PRIVATE KEY-----",
"cert":"-----BEGIN CERTIFICATE-----\n…\n-----END CERTIFICATE-----"}

The node module exports a factory function that produces copies of the object from the JSON file, with an extra property both that contains both, concatenated.

Usage

from usage.js:

var dummyCert = require('ssldebug-dummycert-pmb')(),
  block = ['-----BEGIN ', '-----\n…\n-----END ', '-----'];
equal(noData(dummyCert.key),  block.join('RSA PRIVATE KEY'));
equal(noData(dummyCert.cert), block.join('CERTIFICATE'));
equal(noData(dummyCert.both), block.join('RSA PRIVATE KEY') +
                       '\n' + block.join('CERTIFICATE'));

Known issues

  • Needs more/better tests and docs.

 

License

ISC

Keywords

FAQs

Package last updated on 02 Feb 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc