Skip to content

Proxy your specified localhost port to HTTPS, with automatic certificate installation.

Notifications You must be signed in to change notification settings

willnode/secure-localhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secure-localhost 🔒

Proxy your specified localhost port to HTTPS, with automatic certificate installation.

Why?

Start

Using npx from Node.JS allows you to run NPM binaries without having them installed first.

Forward port 443 (HTTPS default port) to 80 with HTTPS:

$ npx secure-localhost

Forward port 443 to 8000 (pass it to args) with HTTPS:

$ npx secure-localhost 8000

In Windows, for the first launch, you'll asked for a prompt to install the HTTPS certificate.

The certificate is saved to ~/.certs/secure-localhost-server.crt and ~/.certs/secure-localhost-server.key

Caveat

  • Only support Windows for first installation (UNIX users: help us!)
  • Requires openssh to be installed/available on CLI

About

Proxy your specified localhost port to HTTPS, with automatic certificate installation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages