From cb95a628410139fda33662feeb4ba4385cbe3eac Mon Sep 17 00:00:00 2001 From: Ricardo Olsen Date: Thu, 26 Sep 2024 11:05:36 -0300 Subject: [PATCH] Update lib60870 lib code to allow for TLS 1.2/1.3 connections to the IEC104 Server driver. --- .../lib60870.netcore/lib60870/CS104/ClientConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib60870.netcore/lib60870.netcore/lib60870/CS104/ClientConnection.cs b/src/lib60870.netcore/lib60870.netcore/lib60870/CS104/ClientConnection.cs index 6ff71193..41c00b35 100644 --- a/src/lib60870.netcore/lib60870.netcore/lib60870/CS104/ClientConnection.cs +++ b/src/lib60870.netcore/lib60870.netcore/lib60870/CS104/ClientConnection.cs @@ -1252,7 +1252,7 @@ private void HandleConnection() try { - sslStream.AuthenticateAsServer(tlsSecInfo.OwnCertificate, true, System.Security.Authentication.SslProtocols.Tls, false); + sslStream.AuthenticateAsServer(tlsSecInfo.OwnCertificate, true, System.Security.Authentication.SslProtocols.Tls12 | System.Security.Authentication.SslProtocols.Tls13, false); if (sslStream.IsAuthenticated == true) {