Reblogged from www.leastprivilege.com:
Another RTM feature I was waiting for is (reasonable) SSL client certificate support in Web API.
Just like all the other authentication methods, you configure client certificate support on the AuthenticationConfiguration object. The following code configures the certificate to chain validation + check for a specific issuer subject name:
config.AddClientCertificate(
ClientCertificateMode.ChainValidationWithIssuerSubjectName,
"CN=TestCA");
Validation modes are:
- Chain validation only
- Peer validation…
An old post. But since I am writing about AuthenticationHandler..this is still relevant!