Search code examples
opensslcertificate

How to verify passphrase of pem certificate


As the title says. I can verify passphrase easily with php's openssl_pkcs12_read for p12 certs, but it seems like there isn't similar function for pems. Maybe it's impossible to do this with pems?


Solution

  • Have you tried php's openssl_x509_read? Here.

    Or, if you're just using openssl ,openssl x509 -text.