merge keys

This commit is contained in:
uwaa 2024-10-29 02:51:50 +00:00
parent 47e3250397
commit 206044aa6c
6 changed files with 2 additions and 102 deletions

View file

@ -12,14 +12,8 @@ static class Program
{ {
static void Main(string[] args) static void Main(string[] args)
{ {
Console.WriteLine("Loading certificate"); Console.WriteLine("Loading test certificate");
X509Certificate2 cert = X509Certificate2.CreateFromPemFile("certs/example.net.crt", "certs/example.net.key"); X509Certificate cert = X509Certificate.CreateFromCertFile("certs/localhost.pfx");
if (OperatingSystem.IsWindows())
{
//Hack because SslStream is stupid on windows
using X509Certificate2 oldCert = cert;
cert = new X509Certificate2(oldCert.Export(X509ContentType.Pfx));
}
Console.WriteLine("Preparing listeners"); Console.WriteLine("Preparing listeners");
Router router = CreateRouter(); Router router = CreateRouter();

View file

@ -1,19 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIDBjCCAe6gAwIBAgIUG0ArzoB2Hz1DO7wFbUvIqogXhkEwDQYJKoZIhvcNAQEL
BQAwFDESMBAGA1UEAwwJVGVzdCBSb290MB4XDTI0MTAyNTAwNDYxMFoXDTI0MTEy
NDAwNDYxMFowFDESMBAGA1UEAwwJVGVzdCBSb290MIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEAtc6B5D3X/RB+9BSVvnxkJ5ZV4uh8ZQn/8MykL9ILYPOr
WA3uCt6bCt07+6FSww1ii0fFwpEC8tCXel+ZaU4ds9MlVYfdp3d78TKt9rCy/cdr
YWK69KiawoPjynR+8B4d8ifztHsN+xYCl4zoZUW0O911RUGeV9aVFgtBN4a2dUbq
KUGEUkaj5rFMQWxPzdjtH8uCoBrVVBPLQ99qsiGC348ts0zvmb7MxN/nxgnnr9Sp
Fsloed32Yg8+sG9UxhHIF+ledlPaZtk8yAgsdCidy9bzBCpij684YuCIqVootZ5P
Wv0nkoIme8do71n4/sRqINxWwptbhx3rXRJqfkFDmwIDAQABo1AwTjAdBgNVHQ4E
FgQUfnn0b6tLeUyFPMUyKvclzlTeK20w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GhApPUU9thdGv2FQIXBVAiGj947VaVLVS3GkPOANDwrfr7Rg9Ui+xE++A
oornNOIkvrG28KwE0Sov+6MbUeVQRrjd+V/lQ9Nzi33m2Liok5kz3gi/hCnMDIM0
CIXcZn2WuwKBgDKT8W3S6dQ9oTJrJzxjyTaGT+GFm1fG7lc6XLePEw/F47K005q0
nK9E8eK5e1ygrk1eJK6Xl/JpmnfTOPAXtsfOYzJy2wYp3oEwTJMMKJi75tDQaX6Z
AiynbG2AfSlO+G/90YgORr9jV9VRzaRr2TjgduJ5tBRhQd2cawRn5tWhAoGABeet
q2X4QXgXkmwo0+yjj9qebHKoksAGe1R6J8SCaE/HW5X/4j+1zc4RaWovKailWE+W
7NF8IK/hiZ+FSuCdmpAUketEol001WVM6dybv/ld959Gb6iDopxaHITLr2tsb2Zv
BvjLdvzS7zWtL3XqAt9ie1obT9ydUElsoPeDw/0CgYACKO+8BXqLlOggq/ETpIDx
KmCe/oo2aGqOpbHHHjy/MIXJFX3dMfzinbcM2iZxehOobIRX1UEbnxm5rqYcM/Eo
8lHqDAxm92JVqDQlw0g3H8OKMcqWc7gz8cPlgWVQO7kwmEJ9pM22gox6nSknHmC4
oSWd5f1f7u8k8TX0L9HjLQ==
-----END PRIVATE KEY-----

BIN
Example/certs/localhost.pfx Normal file

Binary file not shown.