Skip to content

Instantly share code, notes, and snippets.

@jeanthom
Created August 7, 2026 16:19
Show Gist options
  • Select an option

  • Save jeanthom/cdf5dd2dad34d4a247f00c376d9fa34e to your computer and use it in GitHub Desktop.

Select an option

Save jeanthom/cdf5dd2dad34d4a247f00c376d9fa34e to your computer and use it in GitHub Desktop.
Local HTTPS using tlstunnel
# 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
tlstunnel -config tlstunnel.scfg -debug
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