From time to time when doing web development, you need to test something related to HTTPS. In some cases, the application you’re writing already supports HTTPS natively and that’s no problem. But more often (and probably better, in my opinion) is the case when you have another service (be it an AWS ELB or an nginx layer) that will terminate the HTTPS connection for you so your application doesn’t have to know how to speak HTTPS.
In those cases, how can you test functionality that specifically interacts with HTTPS?
Today I will show you autohttps
, a thin nginx proxy using Docker and a self signed certificate to automatically create an HTTPS proxy in front of your application.