Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dozyio/tls-proxy
A HTTP2 TLS Proxy for testing and development
https://github.com/dozyio/tls-proxy
go golang proxy tls
Last synced: 9 days ago
JSON representation
A HTTP2 TLS Proxy for testing and development
- Host: GitHub
- URL: https://github.com/dozyio/tls-proxy
- Owner: dozyio
- License: isc
- Created: 2024-08-16T18:25:47.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T18:31:35.000Z (3 months ago)
- Last Synced: 2024-08-20T05:54:18.384Z (3 months ago)
- Topics: go, golang, proxy, tls
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TLS Proxy
A simple HTTP2 TLS proxy for connecting to local or remote services. Ideal for testing and development. Your mileage may vary when connecting to remote domains that require certificates, but it should be fine for proxying to local services.
## Installing
```sh
go install github.com/dozyio/tls-proxy@latest
```## Running
Listen on 0.0.0.0:9000 and proxy to http://127.0.0.1:3000, using the supplied certificate and key.
```sh
tls-proxy -l "0.0.0.0:9000" -t "http://127.0.0.1:3000" -c "192.168.1.2.crt" -k "192.168.1.2.key"
```## Generating Certificates
```sh
openssl genrsa -out 192.168.1.2.key 2048
openssl req -new -key 192.168.1.2.key -out 192.168.1.2.csr
openssl x509 -req -days 3650 -in 192.168.1.2.csr -signkey 192.168.1.2.key -out 192.168.1.2.crt
```