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