From a662443d2b0c3b157083ab04f71c0a0d35aed0de Mon Sep 17 00:00:00 2001 From: David Galey Date: Fri, 20 Dec 2024 10:12:07 -0500 Subject: [PATCH] log subject and sans on enroll call --- digicert-certcentral-caplugin/CertCentralCAPlugin.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/digicert-certcentral-caplugin/CertCentralCAPlugin.cs b/digicert-certcentral-caplugin/CertCentralCAPlugin.cs index a617eca..b752f5a 100644 --- a/digicert-certcentral-caplugin/CertCentralCAPlugin.cs +++ b/digicert-certcentral-caplugin/CertCentralCAPlugin.cs @@ -58,6 +58,12 @@ public void Initialize(IAnyCAPluginConfigProvider configProvider, ICertificateDa public async Task Enroll(string csr, string subject, Dictionary san, EnrollmentProductInfo productInfo, RequestFormat requestFormat, EnrollmentType enrollmentType) { _logger.MethodEntry(LogLevel.Trace); + _logger.LogDebug($"Enrolling for certificate with subject {subject}"); + foreach (var sanlist in san) + { + string sans = string.Join(",", sanlist.Value); + _logger.LogDebug($"SANs type \"{sanlist.Key}\": {sans}"); + } OrderResponse orderResponse = new OrderResponse(); CertCentralCertType certType = CertCentralCertType.GetAllTypes(_config).FirstOrDefault(x => x.ProductCode.Equals(productInfo.ProductID)); OrderRequest orderRequest = new OrderRequest(certType);