All Projects → neverendingqs → Openssl Self Signed Certificate

neverendingqs / Openssl Self Signed Certificate

Licence: mit
Self-signed certificate for development use, generated using openssl.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Openssl Self Signed Certificate

Openssl Nodejs
is a package which gives you a possibility to run every OpenSSL command 🔒 in Node.js in a handy way. Moreover, parameters like -in, -keyin, -config and etc can be replaced by a raw data (Buffor).
Stars: ✭ 25 (+78.57%)
Mutual labels:  openssl
Smartphoto
The most easy to use responsive image viewer especially for mobile devices
Stars: ✭ 858 (+6028.57%)
Mutual labels:  npm
Npm Consult
NPM Project Consultant CLI
Stars: ✭ 13 (-7.14%)
Mutual labels:  npm
Instagramfirstcommenter
This bot will post a predefined comment as fast as possible to a new post on the target profile. I used this to successfully win tickets for a big music festival.
Stars: ✭ 26 (+85.71%)
Mutual labels:  npm
Yarn Package Boilerplate
An Yarn package with babel, jest, flow, prettier and more
Stars: ✭ 10 (-28.57%)
Mutual labels:  npm
Typescript Type Generator
Generate interfaces on the go! Network request? Then generate interfaces for response!
Stars: ✭ 11 (-21.43%)
Mutual labels:  npm
Sass A11ycolor
🌈 Generate the nearest accessible color with Sass.
Stars: ✭ 24 (+71.43%)
Mutual labels:  npm
Magic
CSS3 Animations with special effects
Stars: ✭ 7,253 (+51707.14%)
Mutual labels:  npm
Golang Tls
Simple Golang HTTPS/TLS Examples
Stars: ✭ 857 (+6021.43%)
Mutual labels:  openssl
Npm Script Naming Ideas
Ideas for naming npm scripts
Stars: ✭ 12 (-14.29%)
Mutual labels:  npm
Install Self Peers
Stars: ✭ 26 (+85.71%)
Mutual labels:  npm
Autoupdate
Library autoupdate tool 🎰
Stars: ✭ 8 (-42.86%)
Mutual labels:  npm
Keygen
KeyGen is a generator for keys and passwords.
Stars: ✭ 11 (-21.43%)
Mutual labels:  openssl
Ax5ui Uploader
jQuery file uploader, HTML5(IE9+, FF, Chrome, Safari) - http://ax5.io/ax5ui-uploader/
Stars: ✭ 25 (+78.57%)
Mutual labels:  npm
Yarpm
CLI tool to run npm scripts with either npm or yarn, depending on how it was started
Stars: ✭ 13 (-7.14%)
Mutual labels:  npm
Unreset.css
Unreset CSS restores browsers' default element styles which are reset by Eric Meyer's Reset CSS, YUI 3 Reset CSS, HTML5 Reset Stylesheet of HTML5 Doctor, or Tim Murtaugh's HTML5 Reset.
Stars: ✭ 24 (+71.43%)
Mutual labels:  npm
Netkiller.github.io
Netkiller Free ebook - 免费电子书
Stars: ✭ 861 (+6050%)
Mutual labels:  openssl
Release Man
听说你发新版总忘记打 Tag 和改 package.json?
Stars: ✭ 14 (+0%)
Mutual labels:  npm
Conventional Changelog Angular Emoji
👍 Emoijis for the Angular Commit Guidelines with Emojis
Stars: ✭ 13 (-7.14%)
Mutual labels:  npm
Strangelog
Painless file-based changelog management via CLI.
Stars: ✭ 12 (-14.29%)
Mutual labels:  npm

npm version

openssl-self-signed-certificate

Self-signed certificate for development use, generated using openssl. Expires in 4754-06-06.

$ openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 999999 -nodes
Generating a 2048 bit RSA private key
..............................+++
.....+++
writing new private key to 'key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:.
State or Province Name (full name) [Some-State]:.
Locality Name (eg, city) []:.
Organization Name (eg, company) [Internet Widgits Pty Ltd]:.
Organizational Unit Name (eg, section) []:.
Common Name (e.g. server FQDN or YOUR name) []:localhost
Email Address []:.

Install

npm install --save-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 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 + 1} (dev only).`);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].