Notify and crash before its a problem
Docker Build and Release Upload / build (push) Successful in 1m25s

This commit is contained in:
2025-07-26 09:44:56 -07:00
parent 894c8d49f1
commit ca73f1c6e0
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -58,6 +58,11 @@ namespace Auth.Services {
}
public static RsaSecurityKey LoadRSAKey(string KeyPath) {
if (!File.Exists(KeyPath)) {
Console.WriteLine("Unable to load certificate from path: " + KeyPath);
Console.WriteLine("---- Shutting down ----");
Environment.Exit(100);
}
string KeyText = File.ReadAllText(KeyPath);
RSA rsa = RSA.Create();
rsa.ImportFromPem(KeyText.ToCharArray());