
TLS 1.2만 허용하고 SHA/MD5를 비활성화하도록 서버를 업그레이드했습니다. 이제 이 서버에서 TLS 1.2, TLS 1.1 및 TLS 1.0을 지원하는 타사 API를 호출합니다. 이제 C# HttpClient 라이브러리를 사용하여 이 세 번째 부분 API를 호출할 때마다 Could not create SSL/TLS secure channel error
. 내가 설정한 코드에서,
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
같은 오류가 발생합니다. 이 오류를 제거하는 유일한 방법은 내 서버에서 TLS 1.2, TLS 1.1 및 TLS 1.0을 활성화하는 것입니다. 제3자 API를 작동시키는 동안 TLS 1.2만 활성화하려면 어떻게 해야 합니까? 또는 TLS 오류의 주요 원인이 무엇인지 더 많은 정보를 얻으려면 어떻게 해야 합니까?