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