News for hackers. Stuff that matters.
Re:For sale: Trusted root SSL CA signing certificate by tptacek on Saturday February 09, 2013 @02:48PM (#5193741)
There is no mechanism in the TLS X.509 PKI that enforces that rule. If a product promises transparent trust for any sort of customer-selected domains, it is either lying or selling the cryptographic equivalent of plutonium.

There have definitely been attempts to build products that use technical controls in the CA product to enforce the restrictions --- ie, the customer gets a locked down box that tries to make sure it isn't misused --- but as I understand it, these are no longer OK to sell.

Re:For sale: Trusted root SSL CA signing certificate by madsushi on Saturday February 09, 2013 @02:56PM (#5193776)
Gotcha, if the technology isn't in place to properly restrict the issued certs to only the customer's domains, that is bad.

I saw this on another site discussing Trusted Root certs:

> What is required to get a Root Signing Certificate?

> Each certificate provider has different requirements for trusted rootsigning certificates. Most will require something similar to the following:

> - Substantial net worth and insurance

> - A Certification Practice Statement (CPS) outlining your exact policies on issuing and managing certificates.

> - A FIPS 140-2 Level 2 compliant device to generate and managing your root certificate keys.

So it sounds like they are handing out the keys and then hoping that auditing/policies/insurance are in place to cover themselves.

Re:For sale: Trusted root SSL CA signing certificate by JoachimSchipper on Sunday February 10, 2013 @06:53AM (#5196160)
> A FIPS 140-2 Level 2 compliant device to generate and managing your root certificate keys.

For those not versed in this particular jargon: "FIPS 140-2 Level 2" pretty much means "tamper-evident seal" (part of a sticker over the opening stays on the box when you try to remove it - this is only slightly more secure than I make it sound.) Note also that this does not appear to include any restriction on the computers which can say "please sign this certificate for me". Sensible CAs will have extensive physical security around such devices, but can we count on anyone with $BIGNUM dollars to get this right?

On a cryptographic level, there is the paper discussed at http://blog.cryptographyengineering.com/2012/06/bad-couple-o... (http://hal.inria.fr/docs/00/70/47/90/PDF/RR-7944.pdf), which totally pwns some well-regarded smart cards using a (really nifty improvement on) a years-old crypto attack, then goes on to note that the authors really wanted to try their hand at a couple of HSMs too but lacked the funds. Which doesn't prove anything about HSMs, but doesn't exactly give one a lot of confidence either.

So yeah, they do seem to be handing out the keys and hoping that auditing/policies/insurance covers it.

Re:For sale: Trusted root SSL CA signing certificate by ivanr on Saturday February 09, 2013 @03:02PM (#5193801)
Strictly speaking, the mechanism is there (Name Constraints, see section 4.2.1.10 in the RFC 5280), but it's not practical due to it not being implemented consistently across all major browsers.

EDIT: Changed RFC number from 2459 (obsolete) to 5280.

Re:For sale: Trusted root SSL CA signing certificate by tptacek on Saturday February 09, 2013 @03:04PM (#5193817)
D'oh! I meant to write "effectively enforces" because I knew you'd snipe me with something like this. You win this time, Ristic.
Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @04:35PM (#5194113)
No, you're right Ptacek because in this case the extension is being marked NON-critical. I.e., if the client code doesn't recognize the name constraint extension, it's OK to just ignore it.
Re:For sale: Trusted root SSL CA signing certificate by tptacek on Saturday February 09, 2013 @04:43PM (#5194137)
If that is a problem that impacts only one popular browser, I find it easier to cast blame at the feet of the browser.
Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @05:03PM (#5194214)
You're forgetting the huge mass of non-browser SSL/TLS clients.

Do you see the expressions of surprise about this policy here on HN? These are the world's more informed client application developers.

Consider now that your home router's firmware update client, your server's IPMI, and the entire global network for real-time trading of [strategic material] was written by developers to RFCs that told them they had absolutely no reason to implement the Name Constraints extension because if it ever appeared, it was guaranteed to be marked 'critical'.

Re:For sale: Trusted root SSL CA signing certificate by tptacek on Saturday February 09, 2013 @05:47PM (#5194413)
Do you see the expressions of surprise about this policy here on HN? These are the world's more informed client application developers.

Careful. You're going to show up on "Shit HN Says".

Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @07:14PM (#5194710)
Oh dude, make my day! :-)
Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @05:25PM (#5194312)
http://tools.ietf.org/html/rfc5280#section-4.2.1.10

4.2.1.10. Name Constraints

...

Conforming CAs MUST mark this extension as critical

Re:For sale: Trusted root SSL CA signing certificate by tptacek on Saturday February 09, 2013 @06:03PM (#5194482)
And? So they're not RFC compliant. Lots of things aren't.
Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @06:15PM (#5194525)
Developers use the RFCs to write implementations. That's what RFCs are for. In this case, GlobalSign is issuing certs that are noncompliant in a direction that reduces the security experienced by users of compliant implementations.

I think this is wrong both in principle and in practice.

Re:For sale: Trusted root SSL CA signing certificate by tptacek on Saturday February 09, 2013 @06:35PM (#5194584)
The alternative, which is also established practice, is to sell CA=YES certificates with no nameConstraints extension. What does the RFC say about that? Nothing. That's why bringing up the RFC is silly.
Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @07:31PM (#5194777)
CA=TRUE with no nameConstrains is valid under the RFCs.

Whether or not one ought to rely upon a CA that would sell such a cert to a 3rd party is a question of trustworthiness which is (wisely) left out of scope for the RFCs.

Client app developers have a "root CA inclusion program" for this reason. It's more of a business process than a technical one. Mozilla's is probably the most publicly open and well-documented inclusion policy. I believe it also explicitly forbids the practice you describe.

http://www.mozilla.org/projects/security/certs/policy/Inclus...

We consider verification of certificate signing requests to be acceptable if it meets or exceeds the following requirements: all information that is supplied by the certificate subscriber must be verified by using an independent source of information or an alternative communication channel before it is included in the certificate; [...] for a certificate to be used for SSL-enabled servers, the CA takes reasonable measures to verify that the entity submitting the certificate signing request has registered the domain(s) referenced in the certificate or has been authorized by the domain registrant to act on the registrant's behalf;

This requirement clearly cannot be met by a root cert under which sub-CAs with no (or noncritical) name constraints are given to 3rd parties.

Re:For sale: Trusted root SSL CA signing certificate by rmhrisk on Saturday February 09, 2013 @07:33PM (#5194783)
It does not.
Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @07:46PM (#5194824)
So how then does "the CA take reasonable measures to verify that the entity submitting the certificate signing request has registered the domain(s) referenced in the certificate" when giving a 3rd party a private key which can sign a cert for any domain (and will be trusted by many clients the same as if had been issued by the CA itself)?

Here you go: https://wiki.mozilla.org/CA:Communications February 17, 2012 1) Subordinate CAs chaining to CAs in Mozilla’s root program cannot be used for MITM or “traffic management” of domain names or IPs that the certificate holder does not legitimately own or control, regardless of whether it is in a closed and controlled environment or not. Please review all of the subordinate CAs that chain up to your root certificates in NSS to make sure that they cannot be used in this way. Any existing subordinate CAs that can be used for that purpose must be revoked and any corresponding HSMs destroyed as soon as possible, but no later than April 27, 2012.

Note the word "cannnot" there. It's not "prohibited by contractual agreement", it's "destroy the HSMs containing the private keys".

Re:For sale: Trusted root SSL CA signing certificate by adamcaudill on Saturday February 09, 2013 @08:16PM (#5194947)
Based on what's been said here, and on twitter (i.e. https://twitter.com/rmhrisk/status/300351604715057154 ), doesn't it appear that they are in violation of that requirement? Unless contracts and audits meet the requirement for "cannot."
Re:For sale: Trusted root SSL CA signing certificate by rmhrisk on Saturday February 09, 2013 @08:19PM (#5194954)
The root programs all allow for technical and procedural controls to meet the this criteria. There are technical controls beyond name constraints as well.

Again GlobalSign's policies do not allow the use of certificates that chain to our roots to be used for MiTM purposes (or other malicious use cases for that matter) and we have controls in place that protect against such things occurring.

Re:For sale: Trusted root SSL CA signing certificate by marshray on Saturday February 09, 2013 @08:42PM (#5195021)
Perhaps if you described these technical controls in more detail we could reason about its security instead of by way of obscurity.
Re:For sale: Trusted root SSL CA signing certificate by rmhrisk on Saturday February 09, 2013 @08:48PM (#5195042)
Re:For sale: Trusted root SSL CA signing certificate by JoachimSchipper on Sunday February 10, 2013 @06:57AM (#5196167)
This is very comforting. After all, it's not like any CA "trusted" under those programs ever did Bad Things; certainly, these programs loudly warned about DigiNotar, TrustWave and TURKTRUST.
Re:For sale: Trusted root SSL CA signing certificate by kelnos on Sunday February 10, 2013 @08:59AM (#5196413)
Another alternative is not to sell CA=YES certificates at all.
Re:For sale: Trusted root SSL CA signing certificate by huhtenberg on Saturday February 09, 2013 @03:07PM (#5193825)
Perhaps they don't give you the actual cert, but merely issue it, keep on their premises and then let you use it for unlimited signing through some sort of API (that enforces the subdomain restriction)?

Because if they indeed are offering CA=yes certs, that's just plain unbelievable.

Re:For sale: Trusted root SSL CA signing certificate by jlgaddis on Saturday February 09, 2013 @07:53PM (#5194852)
Most will require that the private key be stored in an HSM (which almost certainly will be located on the customer's premises).
Re:For sale: Trusted root SSL CA signing certificate by benmmurphy on Saturday February 09, 2013 @03:13PM (#5193840)
there is dNSName constraints but i don't know how well browsers support it. subordinate CAs seem quite problematic because they are invisible Certificate Authorities at least as far as the user is concerned.