openssl check certificate and key code example Example: openssl view certificate openssl x509 -in certificate.crt -text -noout