How do I resolve “Could not establish trust relati

2019-09-02 15:51发布

I have a WCF service throwing an exception, "Could not establish trust relationship for the SSL/TLS secure channel".

When launching the service, IIS Express prompts to trust the IIS Express SSL Certificate and I select Yes. When accessing the endpoint from IE10, the address bar turns red indicating a certificate error. When I run my code and hit the endpoint, the exception is thrown.

How do I resolve this in IIS Express?

Using Visual Studio 2013 Update 2 and IIS Express.

1条回答
淡お忘
2楼-- · 2019-09-02 16:56

The certificate is probably only in Personal store (CurrentUser\My or LocalMachine\My) and it certainly is selfsigned. Check if the certificate is in Trusted Root store using mmc. If not copy it there (probably in LocalMachine\Trusted Root so that all users will trust this certificate).

查看更多
登录 后发表回答