What is CA certificate, and why do we need it?

Nicolas S.Xu picture Nicolas S.Xu · Oct 15, 2016 · Viewed 13.5k times · Source

I've just read this article about what is HTTPS service, and understand the basic of https.

When requesting https content, the server will send a public key to browser, so that every time, the browser receive data will decrypted with the public key.

My question is what is CA certificate for? Why do we need it?

Answer

Ding-Yi Chen picture Ding-Yi Chen · Apr 25, 2020

A CA certificate is a digital certificate issued by a certificate authority (CA), so SSL clients (such as web browsers) can use it to verify the SSL certificates sign by this CA.

For example, stackoverflow.com uses Let's encrypt to sign its servers, and SSL certificates send by stackoverflow.com mention they are signed by Let's encrypt. Your browser contains the CA certificate from Let's encrypt and so the browser can use that CA certificate to verify the stackoverflow's SSL certificate and make sure you are indeed talking to real server, not man-in-the-middle.

https://security.stackexchange.com/a/20833/233126 provides a more detail explanation about how TLS/SSL certificates work.