IIS7에서 호스팅되는 WCF 서비스가 있습니다. 이 서비스는 Silverlight 클라이언트와 C# Windows 서비스에서 모두 호출됩니다. 현재 모든 것이 동일한 기계에서 실행됩니다. certmgr.msc를 사용하여 신뢰할 수있는 루트로 가져온 authority .cer 파일과 함께 자체 서명 된 인증서를 사용합니다.Windows 서비스에서 WCF 서비스를 호출 할 때 인증서 오류가 발생합니다.
Silverlight 앱은 서비스를 정상적으로 호출 할 수 있지만 Windows 서비스에서 호출하려고하면, 브라우저와 실버 라이트 응용 프로그램은 HTTPS를 통해 서비스에 액세스 할 수있는 동안 Windows 서비스 액세스가 거부 될 수있는 이유가 무엇
System.ServiceModel.Security.SecurityNegotiationException: Could not establish trust
relationship for the SSL/TLS secure channel with authority 'localhost'. --->
System.Net.WebException: The underlying connection was closed: Could not establish
trust relationship for the SSL/TLS secure channel. --->
System.Security.Authentication.AuthenticationException: The remote certificate is
invalid according to the validation procedure.
: 나는 다음과 같은 예외가? 아마도 클라이언트 인증서 지문이 Windows 서비스 또는 다른 서비스에 연결되어야하기 때문일 수 있습니까?
(나는 당신이 볼 수 있듯이 SSL 인증의 새로운 기능을 제공합니다).
감사합니다.
이 답변은 SSL을 무시하려는 경우 다른 해결책을 보여줍니다. http://stackoverflow.com/questions/109186/bypass-invalid-ssl-certificate-errors-when-calling-web-services-in-net – arame3333