SSL C# .NET Core 3.1

0

I developed an application in C # (.NET Core version 3.1).

In this application I use MySql via the MySql.Data library (Version 8.0.21) The application is working fine however sometimes I get this error:

System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
 ---> System.ComponentModel.Win32Exception (0x8009030F): The message or signature supplied for verification has been altered
   --- End of inner exception stack trace ---
   at MySql.Data.Common.Ssl.StartSSL(Stream& baseStream, Encoding encoding, String connectionString)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()

After some research I could see that this is an SSL related issue, however I have tried some solutions but nothing works : /

There is my code to open a connection MySql :

  MySqlConnection con = new MySqlConnection("server=MyIp;database=DB;username=User;password=PWD;AllowLoadLocalInfile=true;");
            con.Open();

the signature algorithm of our certificate is in sha256RSA

We use a Windows Server 2012 R2

If you have an idea to solve this problem, I am interested ;)

thank you in advance

c#
.net
ssl
asked on Stack Overflow Nov 30, 2020 by Biscotto • edited Nov 30, 2020 by Biscotto

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0