Search code examples
sslssl-certificatecertificate-authority

How can I trust a certificate authority


A certificate authority is supposed to verify a website is truly who they say they are, right. But certificate authorities sign there own certificates. So those certs are self signed. Is there a way I can find out if the self signed certificates they use on their website is reputable and trustable?


Solution

  • You have to trust the CA who issued the certificate. Otherwise, we encounter the classic chicken-egg problem where there is no concrete boundary for trust and certainty.

    Once you trust the CA issuer, you can check whether the certificate you have was actually issued by the concerned CA by writing the following on a command line:

    $ openssl verify -verbose -CAfile cacert.pem  server.crt
    

    Expected Output: server.crt: OK

    If you get any other message, the certificate was not issued by that CA.

    Visit https://kb.wisc.edu/middleware/page.php?id=4543 for more info