A TLS termination proxy intended to solve the "last mile" problem for the TLS client authentication.
The feature of this tool is connect to TLS client authentication protected service, and expose the server locally for other client that leaks of the support of TLS client authentication.
I write this to bring modern TLS support to some legacy http client, such like WebDAV.
go get github.com/haruue/tlswrap
or download pre-built binary at GitHub Release
Run tlswrap -help
for the usage.
Example:
./tlswrap \
-ca ca.crt \
-cert client.crt \
-key client.key \
-listen 127.0.0.1:2333 \
-remote ssl.example.com:22443 \
-sni secret.example.com \
-host secret.example.com:22443 \
-dns 1.1.1.1:53 \
-mode http
- tlswrap doesn't support encrypted key yet, a non-encrypted key is more like to be stolen.
- if you expose the http server to a non-loopback network, your service will be access by everyone without authentication.
MIT