From b9bad949442ceaa3e8fb10a94137669634df7cdf Mon Sep 17 00:00:00 2001 From: David Galey Date: Tue, 12 Nov 2024 09:38:12 -0500 Subject: [PATCH] Full CSR and input param logging --- globalsign-atlas-cagateway/GlobalSignAtlasCAConnector.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/globalsign-atlas-cagateway/GlobalSignAtlasCAConnector.cs b/globalsign-atlas-cagateway/GlobalSignAtlasCAConnector.cs index 05fd3f0..d7c62ce 100644 --- a/globalsign-atlas-cagateway/GlobalSignAtlasCAConnector.cs +++ b/globalsign-atlas-cagateway/GlobalSignAtlasCAConnector.cs @@ -67,6 +67,13 @@ public override EnrollmentResult Enroll(string csr, string subject, Dictionary public override EnrollmentResult Enroll(ICertificateDataReader certificateDataReader, string csr, string subject, Dictionary 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 connectionInfo = ConfigProvider.CAConnectionData; AtlasClient client = CreateClient(connectionInfo); Enroll enrollData = new Enroll();