From 032f46aa4bb02436fa1379726653c384399b006d Mon Sep 17 00:00:00 2001 From: David Galey Date: Tue, 12 Nov 2024 09:20:30 -0500 Subject: [PATCH] Log full CSR and input parameters. Do not release. --- src/GlobalSignCAProxy/GlobalSignCAProxy.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GlobalSignCAProxy/GlobalSignCAProxy.cs b/src/GlobalSignCAProxy/GlobalSignCAProxy.cs index 4c261d9..1d00562 100644 --- a/src/GlobalSignCAProxy/GlobalSignCAProxy.cs +++ b/src/GlobalSignCAProxy/GlobalSignCAProxy.cs @@ -51,6 +51,12 @@ public override EnrollmentResult Enroll(ICertificateDataReader certificateDataRe var requestor = productInfo.ProductParameters["Keyfactor-Requester"]; Logger.Debug($"Resolving requesting user as '{requestor}'"); var userInfo = userInfoResolver.Resolve(requestor); + Logger.Trace("Enrollment parameters:"); + Logger.Trace($"CSR: {csr}"); + Logger.Trace($"Subject: {subject}"); + Logger.Trace($"DNS SANs: {string.Join(",", san["dns"])}"); + Logger.Trace($"Product: {productInfo.ProductID}"); + Logger.Trace($"Product Params: {string.Join(";", productInfo.ProductParameters.Select(p => p.Key.ToString() + "=" + p.Value.ToString()))}"); try {