Click or drag to resize

MySqlConnectionStringBuilderAllowPublicKeyRetrieval Property

Gets or sets a boolean value that indicates if RSA public keys should be retrieved from the server.

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.23
public bool AllowPublicKeyRetrieval { get; set; }

Property Value

Type: Boolean
This option is only relevant when SSL is disabled. Setting this option to true in 8.0 servers that have the caching_sha2_password authentication plugin as the default plugin will cause the connection attempt to fail if the user hasn't successfully connected to the server on a previous occasion.
See Also