Verify a certificate chain using openssl verify

前端 未结 7 1529
慢半拍i
慢半拍i 2020-11-28 17:58

I\'m building a own certificate chain with following componenents:

Root Certificate - Intermediate Certificate - User Certificate

Root Cert

7条回答
  •  情深已故
    2020-11-28 18:25

    I've had to do a verification of a letsencrypt certificate and I did it like this:

    1. Download the root-cert and the intermediate-cert from the letsencrypt chain of trust.
    2. Issue this command:

      $ openssl verify -CAfile letsencrypt-root-cert/isrgrootx1.pem.txt -untrusted letsencrypt-intermediate-cert/letsencryptauthorityx3.pem.txt /etc/letsencrypt/live/sitename.tld/cert.pem 
      /etc/letsencrypt/live/sitename.tld/cert.pem: OK
      

提交回复
热议问题