Skip to content

Commit 9bc492c

Browse files
committed
Use CopyWithPrivateKey by default for newer frameworks.
1 parent 6b86fee commit 9bc492c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Core/ServerSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ private async Task InitSslAsync(ProtocolCapabilities serverCapabilities, Connect
10201020
}
10211021
rsa.ImportParameters(rsaParameters);
10221022

1023-
#if !NETCOREAPP2_1
1023+
#if NET45 || NET461 || NET471
10241024
var certificate = new X509Certificate2(cs.SslCertificateFile, "", X509KeyStorageFlags.MachineKeySet)
10251025
{
10261026
PrivateKey = rsa,

0 commit comments

Comments
 (0)