r/ComputerSecurity • u/tjthomas101 • Jun 15 '23
Why do we really need intermediate certificates and the chain of trust?
in SSL, I get that we need a chain of trust and root certificate is self-signed. But I still can't grasp why do we REALLY need it? Because aren't intermediate certificates are also issued by the same CA as root? Thus, does it make a difference if root just signs the SSL certs?
12
Upvotes
8
u/opperior Jun 15 '23
Root certificates are a much larger problem if they are leaked. It's usually a good idea to create multiple intermediate certificates from the root, then lock the root away in an inaccessible location. The intermediate certificates can then be used for daily activities. This way, you always have a certificate available to generate the public certificates, but if an intermediate certificate gets leaked then it's less of a nightmare to deal with. You can revoke an intermediate certificate and re-issue public certificates much more easily than you can a root certificate.
Also, there are management use cases that are much improved by intermediate certificates. Say, for example, you need publicly signed certificates for multiple in-house servers (remote access servers, email servers, etc.). You could purchase an individual certificate for each server, but if you have a lot of servers, that gets expensive and difficult to manage. You could get a wildcard certificate, but they have compatibility issues. Or you could purchase an intermediate certificate from a public CA, install it on your own internal CA, then generate all the certificates you need in a much more manageable fashion.
2
u/Soxcks13 Jun 16 '23
There are many reasons!
Imagine you are a major certificate authority and your root CA private key were stolen. Your business value just dropped to 0 instantly because your root cert is useless. Even if you issued another - why would anyone trust YOU, the CA that lost its root.
2
u/[deleted] Jun 15 '23
I'm not entirely certain as I'm also new on this topic, but doesn't the partitioning just make it easier to generate or invalidate certificates for specific needs? A company has usually 1 root certificate, and then many more for different purposes (signing stuff, communication, and so on).
So yes, basically it doesn't give a huge advantage, but neither a big disadvantage as soon as the certificate was created.