From b3d820e58c8cd85dd36bb5a6ee3708e5e2bba9d4 Mon Sep 17 00:00:00 2001 From: webprofusion-chrisc Date: Sun, 11 Aug 2024 17:16:31 +0800 Subject: [PATCH] TransIP: fix exception when logging private key error --- .../DNS/TransIP/Authentication/DigestSigner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Certify.Providers/DNS/TransIP/Authentication/DigestSigner.cs b/src/Certify.Providers/DNS/TransIP/Authentication/DigestSigner.cs index 7426ad641..74609f6de 100644 --- a/src/Certify.Providers/DNS/TransIP/Authentication/DigestSigner.cs +++ b/src/Certify.Providers/DNS/TransIP/Authentication/DigestSigner.cs @@ -33,7 +33,7 @@ private static ICipherParameters GetCipherParameters(object pem) case AsymmetricCipherKeyPair keyPair: return keyPair.Private; default: - throw new NotImplementedException($"Error getting cipher parameters. '{pem.GetType()}' is not supported."); + throw new NotImplementedException($"Error getting cipher parameters. '{(pem?.GetType())}' is not supported. Check key is a valid PEM format private key."); } }