servecert

command module
v0.0.0-...-ecd0cb3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 11 Imported by: 0

README

servecert

A small local HTTPS proxy using mkcert certificates. Please use with care.

Install

Using Homebrew:

brew install --HEAD lgarron/lgarron/servecert

# Proxy to https://localhost/
servecert https://example.com /

You could also also use any of the following as the second argument:

Argument Meaning
foo.test https://foo.test/
foo.test:8000/ https://foo.test:8000/
/subpath https://localhost/subpath/
http://localhost/ (serves HTTP without a cert on port 80)
http://foo.test:8000/subpath/ (serves HTTP without a cert on port 8000)

When you proxy a new domain using HTTPS for the first time, this invokes mkcert to install a root certificate and generates a certificate. Learn more about mkcert certificate installation.

Build from source

git clone https://github.com/lgarron/servecert && cd servecert
make build

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL