20 references to GetCertPath
Microsoft.AspNetCore.Server.Kestrel.Tests (20)
KestrelConfigurationLoaderTests.cs (15)
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"));
702
var certificate = new X509Certificate2(TestResources.
GetCertPath
(Path.ChangeExtension(certificateFile, "crt")));
733
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
886
var oldCertificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
984
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"));