22 references to GetCertPath
Microsoft.AspNetCore.Server.Kestrel.Tests (22)
KestrelConfigurationLoaderTests.cs (17)
203
var testCertPath = TestResources.
GetCertPath
("leaf.com.crt");
275
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
316
var devCert = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
406
var otherCertificatePath = TestResources.
GetCertPath
("aspnetdevcert.pfx");
443
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
491
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
540
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
591
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
615
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
640
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
665
var certificate = new X509Certificate2(TestResources.
GetCertPath
("https-aspnet.crt"));
796
certificate = new X509Certificate2(TestResources.
GetCertPath
("https-dsa.crt"));
797
certificateFilePath = TestResources.
GetCertPath
(baseName + extension);
798
certificateKeyPath = TestResources.
GetCertPath
(keyName);
982
var certificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
1135
var oldCertificate = new X509Certificate2(TestResources.
GetCertPath
("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
1233
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"));