check if certificate and key match

openssl pkey -in ssl_key.key -pubout -outform pem | sha256sum
openssl x509 -in ssl_cert.crt -pubkey -noout -outform pem | sha256sum

Leave a Reply

Your email address will not be published. Required fields are marked *