19 references to GetCertPath
Microsoft.AspNetCore.Server.Kestrel.Tests (19)
KestrelConfigurationLoaderTests.cs (14)
249var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 290var devCert = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 380var otherCertificatePath = TestResources.GetCertPath("aspnetdevcert.pfx"); 416var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 463var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 512var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 563var certificate = new X509Certificate2(TestResources.GetCertPath("https-aspnet.crt")); 587var certificate = new X509Certificate2(TestResources.GetCertPath("https-aspnet.crt")); 612var certificate = new X509Certificate2(TestResources.GetCertPath("https-aspnet.crt")); 637var certificate = new X509Certificate2(TestResources.GetCertPath("https-aspnet.crt")); 675var certificate = new X509Certificate2(TestResources.GetCertPath(Path.ChangeExtension(certificateFile, "crt"))); 706var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 859var oldCertificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable); 957var oldCertificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
src\Shared\TestResources.cs (5)
31return new X509Certificate2(GetCertPath(certName), "testPassword"); 41return new X509Certificate2(GetCertPath(certName), password); 46var cert = X509Certificate2.CreateFromPemFile(GetCertPath(certName), GetCertPath(keyName)); 69fullChain.ImportFromPemFile(GetCertPath("leaf.com.crt"));