I need to validate a few SSL certificates(X509Certificate2
) in my app and I was wondering if a decent approach could be by only comparing the X509Certificate2.Thumbprint
and X509Certificate2.SerialNumber
of the certificate since both should be unique (aside from possible collision of the hash algorithm).
What are the attacking vectors with this approach? I know that a proper validation includes several steps (chain validation, CRL, etc) but if I only have to validate a specific amount of certificates and not "all possible" certificates, this approach looks quite good (comparing to the work I have to put it)