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 43519b7 commit 3b2c9ddCopy full SHA for 3b2c9dd
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs
@@ -243,6 +243,10 @@ private bool VerifyHealthReportAgainstRootCertificate(X509Certificate2Collection
243
chain.ChainPolicy.ExtraStore.Add(cert);
244
}
245
246
+ // An Always Encrypted-enabled driver doesn't verify an expiration date or a certificate authority chain.
247
+ // A certificate is simply used as a key pair consisting of a public and private key. This is by design.
248
+
249
+ // CodeQL [SM00395] By design. Always Encrypted certificates should not be checked.
250
chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
251
252
if (!chain.Build(healthReportCert))
0 commit comments