Created
August 7, 2026 16:19
-
-
Save jeanthom/cdf5dd2dad34d4a247f00c376d9fa34e to your computer and use it in GitHub Desktop.
Local HTTPS using tlstunnel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create self-signed CA and key | |
| openssl genrsa -aes256 -passout pass:gsahdg -out server.pass.key 4096 | |
| openssl rsa -passin pass:gsahdg -in server.pass.key -out server.key | |
| openssl req -new -key server.key -out server.csr | |
| openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tlstunnel -config tlstunnel.scfg -debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| frontend :443 { | |
| bind 0.0.0.0 | |
| backend localhost:8000 | |
| protocol http/1.1 | |
| } | |
| tls { | |
| load server.crt server.key | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment