title: How to compare X509 certificate object with another .pem extension certificate
body: <p>I have two .pem files(certificate and RSA private key) of a certificate. And I am fetching a <code>X509</code> openSSL certificate object from server. How should I compare this two certificate to make sure they are same or different? </p>