Skip to content

Commit e207619

Browse files
authored
Suppress CredScan false positive in PfxTests.cs
1 parent b412fff commit e207619

File tree

1 file changed

+1
-0
lines changed
  • src/libraries/System.Security.Cryptography/tests/X509Certificates

1 file changed

+1
-0
lines changed

src/libraries/System.Security.Cryptography/tests/X509Certificates/PfxTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ public static void ReadMLKem1024PrivateKey_Both_Pfx(X509KeyStorageFlags keyStora
562562
public static void ReadMLKem512PrivateKey_NotSupported(X509KeyStorageFlags keyStorageFlags)
563563
{
564564
const string PfxPassword = "PLACEHOLDER";
565+
// [SuppressMessage("Microsoft.Security", "CSCAN-GENERAL0060", Justification="False positive, this is a certificate for unit testing.")]
565566
byte[] pfxBytes = Convert.FromBase64String(@"
566567
MIIPbgIBAzCCDzQGCSqGSIb3DQEHAaCCDyUEgg8hMIIPHTCCDk8GCSqGSIb3DQEHBqCCDkAwgg48
567568
AgEAMIIONQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQMwDgQIuOL/cp44/ycCAgfQgIIOCBb45pj6

0 commit comments

Comments
 (0)