Ah, I can see it that way now too. But perhaps it's better to phrase it in such a way there can be no doubt about the intention of the sentence.
Essentially, yeah. It's not an iff situation. I thought the condition and effect were inverted.
So I can't revoke using the ACME account key with keyCompromise as the reason then?
No, you can't, for reasons I still don't understand.
A human made a boo-boo with very large consequences, but I have not seen any argumentation why the private key is the sole revocation method..
Correct. Revoking with the ACME account key proves that you are the Subscriber which requested the certificate, and the BRs require that CAs allow the Subscriber to revoke their own certs at any time.
However, the BRs only require that CAs revoke with reason keyCompromise (and therefore do the cascading revocation of all other certs with the same key) when key compromise has been demonstrated. Revoking using an ACME account key only proves control over that ACME account key, not over the certificate private key, so compromise has not been demonstrated.
Interestingly, BuyPass (last I checked) only supports revoking certs via ACME using the ACME Account key. So if they fix this bug, they effectively block everyone's ability to declare a key compromise (via ACME).
This is the ACME response when you try to revoke using the cert's private key:
{"type":"urn:ietf:params:acme:error:malformed","detail":"The key is unknown","code":400,"message":"MALFORMED_BAD_REQUEST","details":"HTTP 400 Bad Request"}
That fully clarifies the mystery. 
How does one demonstrate a key compromise then? If someone did NOT hack my server and did NOT steal my private key, how does me using my private key as revocation method prove demonstration of compromise?
I think it's a failsafe to prevent just any Joe from revoking your cert. If you hold the private key then you have the private key whether or not you should. It's a bit like unlocking the house then triggering the alarm system.
I've called Wells Fargo for months about someone setting up their account using an email address for a domain that I own as their security email. Wells Fargo won't do anything to fix the situation despite my proving that the email address is compromised. As the controller of the email account, I should be able to declare the compromise, but Wells Fargo won't allow it since I don't own the account. Stupid, huh?
One demonstrates a key compromise by signing a revocation request JWK with the certificate's private key: RFC 8555: Automatic Certificate Management Environment (ACME)
When revocation is requested using the certificate private key, the ACME server does not know who is requesting that revocation. All it knows is that the request is signed using that private key itself. Therefore the private key is in the possession of someone who wants to revoke the cert with reason keyCompromise, so that key must be assumed to be compromised, and the signature on the revocation request is the demonstration of that.
That said -- part of the Subscriber Agreement says that Subscribers warrant that all information they provide to the CA at any time will be accurate and not misleading. So ACME clients should not revoke with reason keyCompromise if the key hasn't actually been compromised.
Ok, an assumption, fair enough. Not really proof/actual demonstration, but that would be impossible anyway. ![]()
Although I still don't fully agree. The BR says:
The CA SHALL revoke a Certificate within 24 hours if one or more of the following
occurs:
3. The CA obtains evidence that the Subscriber’s Private Key corresponding to the
Public Key in the Certificate suffered a Key Compromise;
I cannot find anywhere what the criteria of this "evidence" are? Setting the revocation reason to key compromise, regardless the way it was signed, is evidence enough, right?
I'm not yet convinced I'm afraid..
I see this as the hotel key problem/solution.
You are issued two hotel keys upon checkin. Sometime later someone else turns in one of your keys to the desk. The assumption is then made that both keys (being identical) are compromised. Upon returning to your room, your key doesn't work (has been changed). You go to the desk and they explain the situation.
That's exactly what I was thinking of. Most of my deployments utilize this, but it's such an edge case.
We do it for whitelabel hosted solutions. Every domain gets it's own cert, but the private keys are shared - I typically cycle a new private key every day or week, depending on volume. [Everything is secured on our servers, with no access available to clients.]
SSL is terminated on OpenResty (Nginx variant) nodes, which pick the cert/key pairing during the TLS handshake. The data is loaded from a tiered caching system, that waterfalls from nginx worker, nginx master, redis, LAN API. Recycling the keys lets us have a smaller cache with a longer duration on each level. For our usage, we haven't hit the production numbers yet where this strategy has a substantial difference - but we're steadily approaching it and the system benches way better in stress tests than the status-quo options.
No, it is not. Consider the following situation:
- A large entity (call them Foo Co.) owns hundreds of domains, requests separate certificates for all of them, but uses the same keypair for all of those certificates.
- That entity sells one of its domain names to someone else (call them Bar Inc.).
- Bar Inc. gets a certificate for its own domain name. It has now demonstrated control over that domain name.
- Bar Inc. decides to revoke Foo Co's old certificate for that name. They can do this because they've demonstrated control over that name.
- Buuuut... Bar Inc. decides to put the revocation reason as "keyCompromise". What happens now?
The options are:
a) the CA trusts that the revocation reason is correct, revokes the requested cert, and revokes every other cert issued to Foo Co. with that same key; or
b) the CA does process the revocation, but doesn't also revoke all the other certs, thus being in violation of the Baseline Requirements; or
c) the CA refuses the revocation request, because key compromise has not been demonstrated.
The first two options clearly are not viable. The first one allows anyone who buys a domain from Foo Co to then cause every cert issued to Foo Co. to be revoked, even though they've demonstrated no control over those certs or their keys. The second one is a violation of the BRs. The only viable option is (c), which is what this post is about.
Unless I'm a corrupt politician who wants to shut down your server without actually having any proof that the key has been compromised. Think like a villain here, my friend. ![]()
@aarongable Thanks, that makes sense. I did not fetch this from the bug report I'm afraid, but I understand the reasoning behind it now.
So, you're starting to almost convince me that using only control-over-domain-names for keyCompromise revocation shouldn't be allowed (maybe, though in your example Foo Co. should have revoked their own certificate before transferring to Bar Inc. anyway per section 3.2 of the subscriber agreement, though I don't know if that means it couldn't later be additionally-revoked for keyCompromise). I still don't see why the account key originally used to issue the certificate can't then be used to revoke that cert for keyCompromise. Isn't the owner of the account key definitely the entity that can confirm that a certificate private key was stolen?
That is, in a setup where there's a centralized system for getting certificates (which I think is described as "edge case" above, though I wouldn't have thought it was that weird for larger integrators) that then pushes the certificates out to servers, if one server is hacked/stolen/wiped in such a way that the owner thinks the cert private key is compromised but no longer has access to it, I would have expected that that would be enough to convince the CA that the key was compromised. But it sounds like such a system needs to now ensure that all certificate private keys are backed up in order to ensure they could be later revoked, rather than just needing to back up the account key.
Really, the more I think about it, in that scenario it's really entirely on Foo Co. to have revoked their certificate (or maybe we need to establish some new way of disclaiming the domain names in ACME if needed) before selling the domain to Bar Inc. As was discussed in another thread here recently, if someone loses access to the certificate private key entirely (like it physically gets stolen, or the attacker wipes it after copying the key and other data from it), up until this change the standard approach to recover would be to just create a new ACME account, authorize the names, and use that to claim the old key was compromised. If one can't do that now, then I think you're going to end up with people either just not letting you know keys are compromised since they can no longer "prove" it with the certificate key, or they'd need to keep more certificate key backups (making the risk of a cert key compromise more likely).
Should this change really have happened back in July when CPS 4.0 updated section 4.9.12 to say only the private key of the cert could be used to demonstrate key compromise? At the very least, there probably should have been an API Announcement post at that time with an overview of the CPS changes. Somehow I'd missed that section when I was trying to understand what was happening, but now it looks like it was at least kind of documented since then, at least for people meticulous about looking at updated policy documents.
I feel that there's a certain irony here in that the application of the current proof of key compromise in the virtual world would be a catch-22 in the physical world.
Victim:
I've lost my key and need a rekey.
Locksmith: Prove it.
Victim:
How?
Locksmith: Produce the key and demonstrate its validity.
Victim:
If I had my key, I wouldn't need you.
Locksmith: Sorry, those are the rules.
There's a difference between losing control of a copy of a key and losing control of the copy of a key. Frequently with certificate keys there is but one copy. If it is compromised and access to it is lost, we have a catch-22.
I really am Bob Smith.
No you're not. See. I've got his driver's license right here.
Yeah, in many ways cryptography keys are more analogous to the usage of the word "key" in the phrase "answer key" than in the phrase "lock and key". But in either case, you don't want to lose your only copy. 