## OpenSSL Extract Public Key from Cert With the leaf certificate from Stackoverflow.com, you can extract the public key that is embedded inside of the cert with this command: `openssl x509 -pubkey -noout -in stackexchangecom.crt > pubkey.pem` Print your cert information.. `openssl x509 -in stackexchangecom.crt -text -noout` Print your public key... `openssl rsa -inform PEM -pubin -in pubkey.pem -text -noout` now you can compare the Modulus of the cert and public key to see they are the same.