12 references to CertificateLoader
Certificate.Optional.Sample (1)
Program.cs (1)
26
var serverCertificate =
CertificateLoader
.LoadFromStoreCert(
Http3SampleApp (1)
Program.cs (1)
27
var cert =
CertificateLoader
.LoadFromStoreCert("localhost", StoreName.My.ToString(), StoreLocation.CurrentUser, false);
InMemory.FunctionalTests (5)
CertificateLoaderTests.cs (4)
24
Assert.True(
CertificateLoader
.IsCertificateAllowedForServerAuth(cert));
39
Assert.True(
CertificateLoader
.IsCertificateAllowedForServerAuth(cert));
54
Assert.False(
CertificateLoader
.IsCertificateAllowedForServerAuth(cert));
65
Assert.Equal(hasSan,
CertificateLoader
.DoesCertificateHaveASubjectAlternativeName(cert));
HttpsConnectionMiddlewareTests.cs (1)
1361
Assert.False(
CertificateLoader
.DoesCertificateHaveASubjectAlternativeName(cert));
Kestrel.SampleApp (1)
Startup.cs (1)
128
var localhostCert =
CertificateLoader
.LoadFromStoreCert("localhost", "My", StoreLocation.CurrentUser, allowInvalid: true);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Certificates\CertificateConfigLoader.cs (1)
189
return
CertificateLoader
.LoadFromStoreCert(subject, storeName, storeLocation, allowInvalid);
ListenOptionsHttpsExtensions.cs (1)
117
return listenOptions.UseHttps(
CertificateLoader
.LoadFromStoreCert(subject, storeName.ToString(), location, allowInvalid), configureOptions);
Middleware\HttpsConnectionMiddleware.cs (2)
470
if (!
CertificateLoader
.IsCertificateAllowedForServerAuth(certificate))
474
else if (!
CertificateLoader
.DoesCertificateHaveASubjectAlternativeName(certificate))