Skip to content

Commit

Permalink
Merge pull request #8 from Keyfactor/temp-logging
Browse files Browse the repository at this point in the history
Full CSR and input param logging
  • Loading branch information
dgaley authored Nov 12, 2024
2 parents 562d6de + b9bad94 commit 540cc8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions globalsign-atlas-cagateway/GlobalSignAtlasCAConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ public override EnrollmentResult Enroll(string csr, string subject, Dictionary<s
/// <returns></returns>
public override EnrollmentResult Enroll(ICertificateDataReader certificateDataReader, string csr, string subject, Dictionary<string, string[]> san, EnrollmentProductInfo productInfo, PKIConstants.X509.RequestFormat requestFormat, RequestUtilities.EnrollmentType enrollmentType)
{
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()))}");

Dictionary<string, object> connectionInfo = ConfigProvider.CAConnectionData;
AtlasClient client = CreateClient(connectionInfo);
Enroll enrollData = new Enroll();
Expand Down

0 comments on commit 540cc8d

Please sign in to comment.