We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c199ddd commit bc78faeCopy full SHA for bc78fae
src/Microsoft.Data.SqlClient/tests/FunctionalTests/AlwaysEncryptedTests/Utility.cs
@@ -363,10 +363,11 @@ internal static X509Certificate2 CreateCertificateWithNoPrivateKey()
363
{
364
certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);
365
certStore.Open(OpenFlags.ReadWrite);
366
- if (!certStore.Certificates.Contains(publicKey))
+ if (certStore.Certificates.Contains(publicKey))
367
368
- certStore.Add(publicKey);
+ certStore.Remove(publicKey);
369
}
370
+ certStore.Add(publicKey);
371
372
finally
373
0 commit comments