0

I'm following Microsoft's example here - https://docs.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth#aspnet-sample

When validating the certificate, they check that the Issuer and Subject are both correct before checking the thumbprint. As someone with only a shallow knowledge of certificates, my understanding is that the thumbprint is a hash of the whole certificate which can't be forged/duplicated?

So why can't we get away with only checking the thumbprint?

1
1

Because it is way more restrictive...

...and that might not be what you want. To be clear, you absolutely can, but that means whenever you change the certificate, you need to also change who you trust.

Verification of the subject and CA on the other hand means that you can keep your verification logic as-is and just change the certificate itself.


You will change your certificate whenever it expires. Since certificates are usually valid for about a year (and the trend is going towards shorter certificates), that means you'd need to change your verification logic every year.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.