Use the verify option to verify certificates.

openssl verify cert.pem

If your local OpenSSL installation recognizes the certificate or its signing authority and everything else (dates, signing chain, etc.) checks out, you’ll get a simple OK message.

$ openssl verify remote.site.pem
remote.site.pem: OK

For this to work openssl needs to have access to the CA that issued the certificate. Otherwise you will get an error like:

error 2 at 1 depth lookup:unable to get issuer certificate

To import CA certificates see here: Import CA certificates for openssl to use

indexes/how_do_i_verify_a_certificate.txt · Last modified: 2009/06/24 10:04 by domingo
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki