19 references to GetCertPath
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
KestrelConfigurationLoaderTests.cs (14)
249
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
290
var devCert = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
380
var otherCertificatePath = TestResources.
GetCertPath
("aspnetdevcert.pfx");
416
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
463
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
512
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
563
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
587
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
612
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
637
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
675
var certificate = new X509Certificate2(TestResources.
GetCertPath
(Path.ChangeExtension(certificateFile, "crt")));
706
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
859
var oldCertificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
957
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"));