I have an independent service, to which I want to add transport security. I set WSHttpBinding.SecurityMode for transport and ClientCredentialType for HttpClientCredentialType.None. I created a certificate and installed it on my host using ServiceHost.Credentials.ServiceCertificate.SetCertificate () I also registered it using netsh http add sslcert ipport = 127.0.0.1: 80 certhash = [MyCertHash] certstorename = MY appid = [TheGuidOfTheAppTertvice] verifyclientcertrevocation = disable
When I try to call the service, I get the following error message: "Authentication failed because the remote side has closed the transport stream."
Does this mean that the client and server are trying to authenticate each other? How can i turn it off? To make everything clear, I donโt want to install the certificate on the client, Iโm not looking for any atm authentication, I just protect the contents of the messages, if possible.
source
share