Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openssl-self-signed-certificate

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openssl-self-signed-certificate - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "openssl-self-signed-certificate",
"version": "1.0.0",
"version": "1.1.0",
"description": "Self-signed certificate for development use, generated using openssl. Expires in the year 4754 (4754-06-06).",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -27,1 +27,29 @@ # openssl-self-signed-certificate

```
# Install
```
npm install --safe-dev openssl-self-signed-certificate
```
## Example
```
var express = require('express');
var app = express();
var port = process.env.PORT || 3000;
app.get('/', function(req, res) {
res.send('Hello World!');
});
app.listen(port);
console.log(`HTTP started on port ${port}.`);
if (process.env.NODE_ENV !== 'production') {
var https = require('https');
var options = require('openssl-self-signed-certificate');
https.createServer(options, app).listen(port + 1);
console.log(`HTTPS started on port ${port} (dev only).`);
}
```
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