TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR, verify result: 4294936704
Mono.Unity.Debug.CheckAndThrow (Mono.Unity.UnityTls+unitytls_errorstate errorState, Mono.Unity.UnityTls+unitytls_x509verify_result verifyResult, System.String context, Mono.Security.Interface.AlertDescription defaultAlert) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Mono.Unity.UnityTlsContext.ProcessHandshake () (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
(wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
Rethrow as AuthenticationException: Authentication failed, see inner exception.
Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
(wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.AuthenticateAsClient(string,System.Security.Cryptography.X509Certificates.X509CertificateCollection,System.Security.Authentication.SslProtocols,bool)
System.Net.Security.SslStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) (at <b33672c2670a41d3b6cd2c30c98a2bed>:0)
MySql.Data.MySqlClient.NativeDriver.StartSSL () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.NativeDriver.Open () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.Driver.Open () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.Driver.Create (MySql.Data.MySqlClient.MySqlConnectionStringBuilder settings) (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.GetPooledConnection () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.TryToGetDriver () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlPool.GetConnection () (at <8051f3898298485d9e8510b51445dcd7>:0)
MySql.Data.MySqlClient.MySqlConnection.Open () (at <8051f3898298485d9e8510b51445dcd7>:0)
Example.MySql.DatabaseManager.Connect () (at Assets/Scripts/MySQL/DatabaseManager.cs:42)
Example.MySql.DatabaseManager.Start () (at Assets/Scripts/MySQL/DatabaseManager.cs:22)
MySqlConnectionStringBuilder builder = new MySqlConnectionStringBuilder();
builder.Server = Host;
builder.Port = 3306;
builder.UserID = User;
builder.Password = Password;
builder.Database = Database;
try
{
using (MySqlConnection connection = new MySqlConnection(builder.ToString()))
{
Debug.Log("TEST");
connection.Open();
}
}
catch (MySqlException exception)
{
print(exception.Message);
}