Compare one certificate against another.
If the certificates are equal then zero is returned. If one certificate is null or not a certificate, then a non-zero value is returned.
The return value is useful in a stable sort, but has no user logical meaning.
first |
the certificate to compare |
other |
the certificate to compare against |
zero if the certificates match, non-zero otherwise. |