开发者

WCF WsHttpBinding Certificate Transport Security - Windows Certificate Configuration

开发者 https://www.devze.com 2023-03-15 09:39 出处:网络
I have 开发者_JAVA百科two WCF Services using WsHttpBinding with transport security mutual certificate authentication that are being hosted on the same windows server.Clients that can access one WCF se

I have 开发者_JAVA百科two WCF Services using WsHttpBinding with transport security mutual certificate authentication that are being hosted on the same windows server. Clients that can access one WCF service should not have access to the other WCF service. I need some help on configuring the client certificates on the windows host. The client certificates are signed by trusted CAs and the intermediate and root certificate chain is already installed on the the server. It seems like the service automatically relies on chain of trust and does not require the actual client certificates installed on the server at all before letting the client access the service - this is not the behavior I want. Can someone please tell me how I should be configuring these client certificates in order explicitly allow access to one service and not the other?

Thanks.


That has nothing to do with certificates themselves. When using mutual SSL authentication certificates are used only to authenticate client and the authentication is done outside of your application (this is difference to message security where you can create custom certificate validator). Once certificate is trusted client is automatically authenticated to anything on the server using certificates for authentication.

You are looking for authorization - the step where you define what can authenticated client do with your service. You can either hardcode your authorization logic into your service by using role based security or you can implement two custom ServiceAuthorizationManagers and assign each to single service.

0

精彩评论

暂无评论...
验证码 换一张
取 消