41 points · by sudoyear123 · 7y ago · 15 comments
Historically deploying a feature like delegated credentials was impractical because some large and unpredictable fraction of connections would go like this:
Popular Web Browser: "Hi, I want to talk TLS 1.2 to somesite.example, I know how to handle DelegatedCredentials if you've got any"
Some Site: "Hi, here's our delegated credentials for somesite.example and now let's..."
"Security" MITM Box: "Oh no you don't scumbag! I don't recognise that certificate - FIN. FIN. This connection is an attack!"
With TLS 1.3 that MITM box's operator has to make a decision up front, since it can't understand the part where the remote server actually identifies itself because that's now encrypted. It can either just give up and let the Popular Web Browser do TLS 1.3 unmolested and not break random features OR it can proxy everything and then since it doesn't claim to understand DelegatedCredentials the remote server won't bother trying to use them.
This way if you have middle boxes everything stays no worse than before, but if you don't you get the benefit of new features.
Unfortunately although TLS 1.3 makes it possible to begin deploying this, the end game which reaps the benefits seems a bit fraught. But hey, can't get there if you don't start.
Those proxy credentials were primarily for delegating "limited" client/user credentials, which in turn might be used as either the client or server role for subsequent TLS connections during the lifecycle of a distributed, scientific computing job. As I recall, the practical "limited" characteristic in the Globus GSI system was a single bit flag that was interpreted in the ecosystem to prevent recursive delegation, i.e. out of an abundance of caution about things like batch jobs turning into worms.
> The signature of the DelegatedCredential is computed over the concatenation of:
> 1. A string that consists of octet 32 (0x20) repeated 64 times.
> 2. The context string "TLS, server delegated credentials" for servers and "TLS, client delegated credentials" for clients.
> 3. A single 0 byte, which serves as the separator.
> 4. The DER-encoded X.509 end-entity certificate used to sign the DelegatedCredential.
> 5. DelegatedCredential.cred.
https://tools.ietf.org/html/draft-ietf-tls-subcerts-04#secti...
https://nakedsecurity.sophos.com/2013/01/08/the-turktrust-ss...
The delegated credential is not another cerificate and doesn't have a DNS name in it at all. The original certificate who's private key was used to create the delegated credential still has that information and the client still gets that. The delegated credential only consists of four pieces of information: validity interval, public key, signature algorithm and signature. I.E. just enough information to provide the public key and verify it is signed by the CA signed certificate.
RFC is here if you want to read the details: https://tools.ietf.org/html/draft-ietf-tls-subcerts-04
Few CDNs have this exact problem and they sign their short term certs with their master cert.