I am writing a WCF service where I need to access the Hashcode of the client certificates that are used to connect to the service.
I am looking for a property or method similar to Request.ClientCertificate from ASP.NET 2.0 days, but cannot find anything that makes it easy to access the client certificate.
Our service is configured in such a way that it works with SSL using basicHttpBinding and the security mode "Transport".
IIS is configured to require SSL and Accept certificates.
It should be noted that our server certificate used to protect the endpoint from another CA to a client certificate - client certificates are intended to be checked only using a custom code (in this case, you must obtain the hash code of the connection certificate).
I created a custom implementation of IDispatchMessageInspector to find out if there is access to a client certificate, but to no avail.
Has anyone tried to do this and have been successful before?
lowds source
share