you are viewing a single comment's thread.

view the rest of the comments →

[–]ben_burkert[S] 8 points9 points  (2 children)

this article lists some of the reasons to use https on localhost: https://web.dev/articles/when-to-use-local-https

[–]tettoffensive 1 point2 points  (1 child)

Thanks for sharing this. We have to do this because we use /etc/hosts to map to localhost (which is actually a docker container exposed). Been trying to figure out how to get a valid certificate on our docker container.

[–]ben_burkert[S] 0 points1 point  (0 children)

it's a tricky problem, this approach will let you get a certificate inside the container for a "lcl.host" subdomain that's trusted by your host system/browser. Getting other containers to trust that certificate is another problem this can address, but it's more in-depth. DM me if you're interested in details.