Skip to content

Commit

Permalink
Log full CSR and input parameters. Do not release.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaley committed Nov 12, 2024
1 parent 6cddd9e commit 032f46a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GlobalSignCAProxy/GlobalSignCAProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 032f46a

Please sign in to comment.