Skip to content

Commit 30ea715

Browse files
committed
Correctly create a new, unique KeyContainerName.
1 parent 740ae0d commit 30ea715

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
@@ -1154,7 +1154,7 @@ private async Task InitSslAsync(ProtocolCapabilities serverCapabilities, Connect
11541154
// SslStream on Windows needs a KeyContainerName to be set
11551155
var csp = new CspParameters
11561156
{
1157-
KeyContainerName = new Guid().ToString(),
1157+
KeyContainerName = Guid.NewGuid().ToString(),
11581158
};
11591159
rsa = new RSACryptoServiceProvider(csp)
11601160
{

0 commit comments

Comments
 (0)