34 references to TestResources
Microsoft.AspNetCore.Server.Kestrel.Tests (34)
KestrelConfigurationLoaderTests.cs (34)
163opt.ServerCertificate = TestResources.GetTestCertificate();
164opt.ServerCertificateChain = TestResources.GetTestChain();
206opt.UseHttps(TestResources.GetTestCertificate());
249var certificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
290var devCert = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
296var defaultCertPath = TestResources.TestCertificatePath;
297var defaultCert = TestResources.GetTestCertificate();
373new KeyValuePair<string, string>("Endpoints:End1:Certificate:Path", TestResources.TestCertificatePath),
378var testCertificate = TestResources.GetTestCertificate();
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);
518var defaultCertificate = TestResources.GetTestCertificate();
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);
862var newCertificate = new X509Certificate2(TestResources.TestCertificatePath, "testPassword", X509KeyStorageFlags.Exportable);
957var oldCertificate = new X509Certificate2(TestResources.GetCertPath("aspnetdevcert.pfx"), "testPassword", X509KeyStorageFlags.Exportable);
962var newCertificate = new X509Certificate2(TestResources.TestCertificatePath, "testPassword", X509KeyStorageFlags.Exportable);
1057opt.ServerCertificate = TestResources.GetTestCertificate();
1127opt.ServerCertificate = TestResources.GetTestCertificate();
1176opt.ServerCertificate = TestResources.GetTestCertificate();
1221opt.ServerCertificate = TestResources.GetTestCertificate();
1251opt.ServerCertificate = TestResources.GetTestCertificate();
1280opt.ServerCertificate = TestResources.GetTestCertificate();
1313opt.ServerCertificate = TestResources.GetTestCertificate();
1385opt.ServerCertificate = TestResources.GetTestCertificate();
1413opt.ServerCertificate = TestResources.GetTestCertificate();
1440opt.ServerCertificate = TestResources.GetTestCertificate();