UAT 환경을 통해 webservice를 호출하는 동안 오류가 발생합니다. 그러나 내 지역에서는 제대로 작동하고 있습니다. 그것은 더미 CERT로 인해 수 있지만 여기에 게시 그래서 대답을 얻을 수 없습니다으로 일부 의견을 참조하십시오. 또한 나는 WCF 초보자입니다. 어떻게 해결할 수 있는지 알려주세요. 권한이있는 SSL/TLS 보안 채널에 대한 트러스트 관계를 설정할 수 없습니다 : System.ServiceModel.Security.SecurityNegotiationException -System.ServiceModel.Security.SecurityNegotiationException : 권한이 SSL/TLS 보안 채널에 대한 트러스트 관계를 설정할 수 없습니다.
은 내가
//Trust all certificates
System.Net.ServicePointManager.ServerCertificateValidationCallback =
((sender, certificate, chain, sslPolicyErrors) => true);
오류로 모든 신뢰하는 경우 말했다 생산에 미치는 영향 일 것이다. ---> System.Net.WebException : 기본 연결이 닫혔습니다 : SSL/TLS 보안 채널에 대한 트러스트 관계를 설정할 수 없습니다. ---> System.Security.Authentication.AuthenticationException : 유효성 검사 절차에 따라 원격 인증서가 유효하지 않습니다.
바인딩
<basicHttpBinding>
<binding name="GLEditServiceSOAP" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
또한 내 로컬 호스트에 노력하고 있습니다 궁금하다.
신뢰할 수있는 인증서 저장소에 서버의 인증서를 추가하려고 했습니까? – Dhawalk