Verifying Certificate using Mac Terminal

12,416

From the documentation:

verify-cert [-c certFile] [-r rootCertFile] [-p policy] [-k keychain] [-n] [-L] [-l] [-e emailAddress] [-s sslHost] [-q] Verify one or more certificates.

      Options:
      -c certFile     Certificate to verify, in DER or PEM format. Can be specified
                      more than once; leaf certificate has to be specified first.

Try this instead: security verify-cert -c certificate.pem

Share:
12,416

Related videos on Youtube

Mike
Author by

Mike

Updated on September 18, 2022

Comments

  • Mike
    Mike over 1 year

    In Mac Terminal, we can use the command security to do many things related to certificates. I'm trying to know how to verify a certificate using this command. I wrote security verify-cert [.pem path]> output.txt but it didn't show any details! How can I show a certificate detail using this command? Thank you in advance.