TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why would a CA revoke a cert with a public private key?

3 pointsby JakaJancar8 months ago
To get working HTTPS on localhost, something I have done in the past is:<p><pre><code> - register myproject.dev, - point it to 127.0.0.1, - create a cert for it, and - just store the private key in the repo. </code></pre> Every coworker can check out the (private) repo and has working HTTPS without any fuss or configuration.<p>There are projects like https:&#x2F;&#x2F;lcl.host, but they require installing stuff on the machine and&#x2F;or modifying the browser trust configuration.<p>Why has nobody just registered a similar domain like lcl.host, pointed it to 127.0.0.1, and published the private key for everyone to use?<p>Would the CA revoke this cert? Why? Doesn&#x27;t the domain owner get to define the set of servers they allow to use the cert, and if that set just happens to be everyone, so what?<p>Is this &quot;there are limits to how wide you can distribute your private key&quot; policy documented somewhere?<p>Looking at digicert[1], if a revocation request is submitted, the owner must approve it. What happens if I just don&#x27;t approve it?<p>[1]: https:&#x2F;&#x2F;docs.digicert.com&#x2F;en&#x2F;certcentral&#x2F;manage-certificates&#x2F;revoke-an-issued-ssl-tls-certificate&#x2F;approve--or-reject--a-certificate-revocation-request.html

3 comments

leftbehind8 months ago
IIRC, if you have a private key you can be able to force a revocation regardless of what the owner wants. In some such as Let&#x27;s Encrypt it is fully automated.<p>If this is a repo private, you should be realize it with a private CA that you import or is on every corp machine.<p>Baseline Requirements force a revocation within x hours on key disclosure.
评论 #41642339 未加载
akerl_8 months ago
This is the kind of message board logic that doesn’t actually work in the real world.<p>The CA has to answer to the CAB if they want to stay in browser trust stores, and quite clearly a private key that’s posted publicly has been disclosed.
aiaiaiaiaiai8 months ago
Why doesn&#x27;t the browser treat local loopback as secure network communication? Would save all the nonsense. Cant get more secure than not sending data over the network!