News for hackers. Stuff that matters.
Re:Show HN: Mkcert – Valid HTTPS certificates for localhost by FiloSottile on Monday January 07, 2019 @06:36AM (#18844416)
That is a fair argument, but it is already possible to get the behavior you want: the root key is generated with permissions 0400, so if your first run of mkcert is with root, all following invocations will also require root.

My reason for not making it a first class feature (with its complexity cost) is that in the vast majority of cases, an attacker with the ability to read local files can also directly attack the browser. (At least in mkcert’s use case, which is development not deployment.)

Also, I don’t really see how to maintain that boundary once ACME gives certificates to anything that can connect to a local port (without sending headers suggesting it’s a tricked browser).

Re:Show HN: Mkcert – Valid HTTPS certificates for localhost by Natanael_L on Monday January 07, 2019 @09:25AM (#18845304)
How about instead adding an alert when not running it as root?