From 608414bfdaed4424f02da253a95633adc47bf0ae Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 20 Jul 2025 16:55:46 +0800 Subject: [PATCH] :bug: Fix certificate loading --- DysonNetwork.Shared/Http/KestrelConfiguration.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/DysonNetwork.Shared/Http/KestrelConfiguration.cs b/DysonNetwork.Shared/Http/KestrelConfiguration.cs index 97bfb66..e5afcb8 100644 --- a/DysonNetwork.Shared/Http/KestrelConfiguration.cs +++ b/DysonNetwork.Shared/Http/KestrelConfiguration.cs @@ -24,12 +24,6 @@ public static class KestrelConfiguration // Load PEM cert and key manually var certificate = X509Certificate2.CreateFromPemFile(certPath, keyPath); - - // You MUST call this to make sure the key is usable - certificate = certificate.CopyWithPrivateKey( - RSA.Create() - ); - // Now pass the full cert options.ListenAnyIP(5001, listenOptions => {