title: How to compare two X509Certificate2 c#
body: <p>How can I compare two X509Certificate2 objects?</p>
  
  <p>I need to find whether two certificates are same. It's for user authentication purpose and I need to find if both the certificates are of the same person.</p>
  
  <p>Can I use its serial number or thumprint properties? or is there any other methods?</p>
  
  <p>Also I am new to this and would like to know is it safe to use X509Certificate for user authentication?</p>