Skip to content

DoctorU/https-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A quick https-server

Are you tired of not being able to quickly and easily run https locally?

This script solves the problem!

Dependencies

  1. This script is written in sh, but tested on zsh on Ubuntu 22.04.
  2. openssl is required.
  3. node is required.

On checkout

Install with

npm ci

Usage

npm start -- website/root/dir

Stop the https-server running with CTRL-C.

How it works.

  • It creates a folder tmp in the current directory.
  • It createds certificates in tmp using openssl.
  • It runs the http-server module in https mode using the certificates.
  • When you stop the server, the script automatically deletes the tmp folder.

What do you think?

I like this repo because it solved a niggling problem I had.

Do you like it? Is it a good idea? Do you have a suggestion to improve it?

Star the repo.

Raise issues. I'll get back to them when I can.

Thanks,

DoctorU.

About

Run an https-server locally with minimal fuss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages