Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Notifications You must be signed in to change notification settings

willnode/secure-localhost

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 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

More options run npx secure-localhost --help

For the first launch, you'll asked to install the HTTPS certificate. For windows it will be a dialog prompt. For unix, a sudo password will be asked.

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

Caveat

  • Only tested in Windows and Linux for now (Mac users: help us!)
  • If ran without sudo in Unix, it uses port 8443 instead of 433
  • 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

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.