Error we are having while Connecting using below line code
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;
Error : System.ComponentModel.Win32Exception (0x80004005): The client and server cannot communicate, because they do not possess a common algorithm.
The Ciphers, Hashtags and Key enable at both end for the TLS1.3 are mention below
For Linux – TLS1.2/1.3, AES 256, SHA 256/384, ECDH
For Windows – TLS1.2/1.3, AES 256, SHA 256/384/512, Diffie-Hellman/PKCS/ECDH
With same configuration when we are trying to connect to the URL using TLS1.2 is working fine, but the same is not working for the TLS1.3
The Application for we have build on using .Net framework 4.8.1 and below are the lines used for TLS connection
TLS 1.2 – ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
TLS 1.3 – ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls13;