22 references to GetCertPath
Microsoft.AspNetCore.Server.Kestrel.Tests (22)
KestrelConfigurationLoaderTests.cs (17)
203
var testCertPath = TestResources.
GetCertPath
("leaf.com.crt");
276
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
317
var devCert = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
407
var otherCertificatePath = TestResources.
GetCertPath
("aspnetdevcert.pfx");
443
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
490
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
539
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
590
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
614
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
639
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
664
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
794
certificate = new X509Certificate2(TestResources.
GetCertPath
("https-dsa.crt"));
795
certificateFilePath = TestResources.
GetCertPath
(baseName + extension);
796
certificateKeyPath = TestResources.
GetCertPath
(keyName);
980
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
1133
var oldCertificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
1231
var oldCertificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
src\Shared\TestResources.cs (5)
31
return new X509Certificate2(
GetCertPath
(certName), "testPassword");
41
return new X509Certificate2(
GetCertPath
(certName), password);
46
var cert = X509Certificate2.CreateFromPemFile(
GetCertPath
(certName),
GetCertPath
(keyName));
69
fullChain.ImportFromPemFile(
GetCertPath
("leaf.com.crt"));