Expose TLS traffic for a specific host and port

ngrok

  • Reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service.
    More information: <https://ngrok.com>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ngrok tls -hostname={{foo.com}} {{443}}

click the source code to copy install ngrok on any operating system with command-not-found.com