Skip to content

No credentials are available in the security package #1278

@ingted

Description

@ingted

Software versions
MySqlConnector version: latest git cloned repository
Server type (MySQL, MariaDB, Aurora, etc.) and version: GCS 5.7
.NET version: .NET 7

Describe the bug
Unable to open a connection due to auth issue. "No credentials are available in the security package"

Code sample

        let myBuilder = 
            new MySqlConnectionStringBuilder(@"Server=XXXXX;User ID=YYYY;Password=ZZZZZZ;Database=QQQQQ")

        myBuilder.SslCert <- @"G:\Downloads\data-team\client-cert.pem"
        myBuilder.SslKey <- @"G:\Downloads\data-team\client-key.pem"
        myBuilder.SslCa <- @"G:\Downloads\data-team\server-ca.pem"
        myBuilder.SslMode <- MySqlSslMode.VerifyFull
        
        let myConn = new MySqlConnection(myBuilder.ConnectionString)

        myConn.Open()

Exception

Exception thrown: 'System.Security.Authentication.AuthenticationException' in System.Private.CoreLib.dll

image

image

image

image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions