-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
KB5012643 is causing issues with some apps in Windows 11, but there's a workaround
By Usama Jawad96,
- microsoft
- windows 11
- (and 12 more)
- 3 replies
- 8 views
-
- 12 answers
- 10,053 views
-
- 2 answers
- 1,919 views
-
- 2 answers
- 1,796 views
-
- 2 answers
- 4,363 views
-
Question
sathenzar
So I am pretty stuck here. I've always been able to host WCF apps with no problem over http. I can setup https WCF apps in IIS. But when I'm trying to use a self hosted https wcf app this has been nothing but a nightmare. I am running both the client and self hosted service on the same computer. Also, the service opens each time I run it with no errors. It's reported state is open. When I try to connect with the client (which is activating the service via channel factories) it crashes with the SSL/TLS error as described below. I've been at this for about 2 days now and can't get it to work :(
I have tried following several guides such as (but not limited to) the ones here: http://blogs.msdn.com/b/james_osbornes_blog/archive/2010/12/10/selfhosting-a-wcf-service-over-https.aspx as well as here: http://msdn.microsoft.com/en-us/library/ms733791.aspx. The first document I follow it to the letter and at the end when the author says "And that's it! now we can call the program and it will invoke the service" it doesn't. It gives me an error: "Could not establish trust relationship for the SSL/TLS secure channel".
So I tried a slightly different approach upon coming on to the second article. I tried to use an existing certification already listed for my server (which is stored under personal certifcations). I copied the thumbprint and registered it with the port creating my own app id. That didn't work so I thought well lets try to force the client certificate thumbprint on both the service and the client by specifying the client credentials and looking it up via thumbprint like so:
Link to comment
Share on other sites
4 answers to this question
Recommended Posts