2017-01-18 30 views
1

내 webApi는 타사 웹 API 서비스를 사용하고 있습니다. 문제는 내 로컬 컴퓨터와 Azure 웹 서비스에서 완벽하게 작동한다는 것입니다. 하지만이 솔루션을 Azure VM 인스턴스로 전송하면이 오류가 발생합니다. 나는 HttpClient를 가진 그 제 3 자 웹 API와 관련된 등록 올바른 인증서를 설치하고요청이 중단되었습니다. SSL/TLS 보안 채널을 만들지 못했습니다. | System.Net.WebException

ServicePointManager.Expect100Continue = true; 
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11; 

으로 시도했지만 같은 오류를주고있다. 나는 정확한 오류가 무엇인지 모른다. 어느 누구도 이걸 도와 주실 수 있습니까?

:

1.Leverage https://www.ssllabs.com/ssltest/ 지원되는 프로토콜은 다음과 같이 귀하의 측면에서 타사 웹 API를 모두 확인 : 나의 이해 당

+0

어떤 타사 웹 API를 사용하고 있습니까? 이 문제를 재현 할 수 있도록 타사 웹 API를 호출하는 것과 관련된 몇 가지 주요 코드를 제공 할 수 있습니까? –

답변

4

, 당신은이 문제를 확인하기 위해 다음과 같은 방법을 참조 할 수

2.Configure SecurityProtocolServerCertificateValidationCallback는 다음과 같이

ServicePointManager.Expect100Continue = true; 
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; 
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls 
      | SecurityProtocolType.Tls11 
      | SecurityProtocolType.Tls12 
      | SecurityProtocolType.Ssl3; 

또한 자세한 내용은 issue1issue2을 참조하십시오.

관련 문제