7 references to X509Certificate2
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
186
return [new
X509Certificate2
(filePath, password)];
Aspire.Dashboard.Tests (1)
tests\Shared\TestCertificateLoader.cs (1)
36
return new
X509Certificate2
(GetCertPath(certName), password);
Aspire.Hosting.Tests (1)
Dcp\DcpHostNotificationTests.cs (1)
514
return new
X509Certificate2
(path, "testPassword");
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Certificates\CertificateConfigLoader.cs (1)
75
return (new
X509Certificate2
(Path.Combine(HostEnvironment.ContentRootPath, certInfo.Path!), certInfo.Password), fullChain);
ListenOptionsHttpsExtensions.cs (2)
57
return listenOptions.UseHttps(new
X509Certificate2
(Path.Combine(env.ContentRootPath, fileName), password));
72
return listenOptions.UseHttps(new
X509Certificate2
(Path.Combine(env.ContentRootPath, fileName), password), configureOptions);
TlsConfigurationLoader.cs (1)
161
var certificate = new
X509Certificate2
(certificatePath, certificateConfig.Password);