tls-proxy

command module
v0.0.0-...-6416e84 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 5 Imported by: 0

README

TLS Proxy

A reverse proxy that handles TLS connections and forwards requests to another URL.

Install

go install github.com/francescomari/tls-proxy

Generate certificates

mkcert can generate valid certificates signed by a local certificate authority (CA).

Install the local CA:

mkcert -install

Create a certificate and a private key:

mkcert -cert-file crt.pem -key-file key.pem localhost

Usage

Start a proxy on port 8080 that redirects every requesto to port 8081 on localhost. The proxy runs with TLS, using the specified certificate and private key:

tls-proxy -source :8080 -target http://localhost:8081 -cert crt.pem -key key.pem

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