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 1799368 commit 045afcdCopy full SHA for 045afcd
src/Servers/Kestrel/Core/src/CertificateLoader.cs
@@ -48,7 +48,7 @@ public static X509Certificate2 LoadFromStoreCert(string subject, string storeNam
48
// Pick the first one if there's no exact match as a fallback to substring default.
49
foundCertificate ??= certificate;
50
51
- if (certificate.GetNameInfo(X509NameType.SimpleName, true).Equals(subject, StringComparison.InvariantCultureIgnoreCase))
+ if (certificate.GetNameInfo(X509NameType.SimpleName, forIssuer: false).Equals(subject, StringComparison.InvariantCultureIgnoreCase))
52
{
53
foundCertificate = certificate;
54
break;
0 commit comments