I solved this problem by requesting a TLS certificate from my company's Windows domain CA for my machine's hostnames on the internal network (machinename and machinename.company.com - both added to the same cert via Subject Alternative Name). Then I mapped those domains to 127.0.0.1 in /etc/hosts so it works even when I'm not on the internal network.
From there it's simple to host the front-end app I work on using a node.js script.
I guess I am not the only one having around a `genssl.sh` that grew big during the years, using openssl, generating CA, certreq, then signing and setting properly `subjectAltName` etc :-D I like mkcert since it also injects the root CA into the trust store - was always too lazy to do this programmatically.
Comments (115) 39 threads
Earlier commentsFrom there it's simple to host the front-end app I work on using a node.js script.
I guess I am not the only one having around a `genssl.sh` that grew big during the years, using openssl, generating CA, certreq, then signing and setting properly `subjectAltName` etc :-D
I like mkcert since it also injects the root CA into the trust store - was always too lazy to do this programmatically.
https://gist.github.com/kmARC/458a2afbd55635eef3b5f911359ce5...
Also note that this doesn't have intermediate CA, root CA signs everything. And of course: NEVER use this even close to production. (as you can see, even I only used in my sandbox env)
All comments shown.
Couldn't load more comments. Check your connection and try again.