Verify a certificate chain using openssl verify

前端 未结 7 1527
慢半拍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:34

    From verify documentation:

    If a certificate is found which is its own issuer it is assumed to be the root CA.

    In other words, root CA needs to self signed for verify to work. This is why your second command didn't work. Try this instead:

    openssl verify -CAfile RootCert.pem -untrusted Intermediate.pem UserCert.pem
    

    It will verify your entire chain in a single command.

提交回复
热议问题