openssl-self-signed-certificate
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "openssl-self-signed-certificate", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"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", |
@@ -49,7 +49,12 @@ # openssl-self-signed-certificate | ||
var https = require('https'); | ||
var options = require('openssl-self-signed-certificate'); | ||
var selfSigned = require('openssl-self-signed-certificate'); | ||
var options = { | ||
key: selfSigned.key, | ||
cert: selfSigned.cert | ||
}; | ||
https.createServer(options, app).listen(port + 1); | ||
console.log(`HTTPS started on port ${port} (dev only).`); | ||
console.log(`HTTPS started on port ${port + 1} (dev only).`); | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6535
60