2017-03-01 1 views
1

Trello의 웹 사이트에 REST 요청을 보내는 .net 핵심 응용 프로그램을 개발 중입니다. 그러나 첫 번째 요청에서는 TlsException: Invalid certificate received from server이 발생합니다..net 핵심 응용 프로그램의 웹 사이트에서받은 인증서의 유효성을 검사하는 방법

이 오류를 검색 한 후 ServicePointManager.ServerCertificateValidationCallback 메서드를 사용하는 해결 방법을 발견했습니다. 내 문제는 ServicePointManager이 .net 코어의 일부가 아니라는 것입니다. Trello의 인증서를 확인하거나 내 환경에서 유효성 검사 단계를 건너 뛸 수있는 올바른 방법은 무엇입니까?

TlsException: Invalid certificate received from server. Error code: 0xffffffff80092012 
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates) 
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1() 
Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process() 
(wrapper remoting-invoke-with-check) Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process() 
Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Mono.Security.Protocol.Tls.TlsStream handMsg) 
Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (IAsyncResult asyncResult) 
Rethrow as IOException: The authentication or decryption has failed. 
Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback (IAsyncResult asyncResult) 
Rethrow as WebException: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure 
System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) 
System.Net.HttpWebRequest.GetResponse() 
RestSharp.Http.GetRawResponse (System.Net.HttpWebRequest request) 
Rethrow as WebException: Trello returned with an error. 
Error Message: Error getting response stream (Write: The authentication or decryption has failed.): SendFailure 

답변

0

WinHttpHandler .NET은 코어에서 사용된다 :

여기 관련 예외 스택 추적한다.

관련 문제