简体   繁体   中英

How Can i access soap webservice using Client certificates in asp.net c#

I have a WCF service which uses basicHttpBinding. Now I want to secure my methods so that no one can create a proxy and use my method. I used WCF client certification from msdn. But cant move further. here is my web.config

An SO post on calling a service with a client certificate explains some of what you need to know. It is mostly from the client perspective of course, but it shows and explains some of what you will likely need.

Also check out another SO post from the WCF service's perspective that should help - particularly the answer that explains...

binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; // Assuming your BasicHttpBinding instance is called "binding".

...is needed on (both) the (server and) client side(s).

Finally, for some insight into accepting only certain client certificates, which is what I think you are after, checkout a helpful blog post that explains more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM