mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 02:28:19 +00:00
feat: disable key persistence for RSA in DebugWebsocketSink and simplify config loading warning message
This commit is contained in:
parent
2530003a58
commit
c050bb4eb3
2 changed files with 2 additions and 1 deletions
|
|
@ -273,6 +273,7 @@ namespace PepperDash.Core
|
|||
var rsaParams = DotNetUtilities.ToRSAParameters(
|
||||
(RsaPrivateCrtKeyParameters)keyEntry.Key);
|
||||
var rsa = new RSACryptoServiceProvider();
|
||||
rsa.PersistKeyInCsp = false;
|
||||
rsa.ImportParameters(rsaParams);
|
||||
cert.PrivateKey = rsa;
|
||||
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ namespace PepperDash.Essentials
|
|||
Debug.LogMessage(LogEventLevel.Information, "Folder structure verified. Loading config...");
|
||||
if (!ConfigReader.LoadConfig2() || ConfigReader.ConfigObject == null)
|
||||
{
|
||||
Debug.LogMessage(LogEventLevel.Warning, "Unable to load config file. Please ensure a valid config file is present and restart the program.");
|
||||
Debug.LogMessage(LogEventLevel.Warning, "Unable to load config file.");
|
||||
}
|
||||
|
||||
Load();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue