1. self-signed-https
Creates a self-signed https server
self-signed-https
Package: self-signed-https
Created by: gkovacs
Last modified: Sun, 26 Jun 2022 17:26:57 GMT
Version: 1.0.5
License: MIT
Downloads: 415
Repository: https://github.com/gkovacs/self-signed-https

Install

npm install self-signed-https
yarn add self-signed-https

self-signed-https

Creates a self-signed https server

Installation

npm install self-signed-https

Usage

A basic HTTPS hello world app written in express (paste into app.js):

 var express = require('express')
var selfSignedHttps = require('self-signed-https')

var app = express()
app.get('/', function(req, res) {
    res.send('hello world')
})

selfSignedHttps(app).listen(443, '0.0.0.0')

You will need to run as root as it's listening on port 443 (change to a higher port like 3000 if you want to run without sudo):

sudo node app.js

Then, you can visit https://localhost in your web browser

License

MIT

Credits

Author: Geza Kovacs

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code