Skip to content

Commit a662443

Browse files
committed
log subject and sans on enroll call
1 parent eff9de9 commit a662443

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

digicert-certcentral-caplugin/CertCentralCAPlugin.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ public void Initialize(IAnyCAPluginConfigProvider configProvider, ICertificateDa
5858
public async Task<EnrollmentResult> Enroll(string csr, string subject, Dictionary<string, string[]> san, EnrollmentProductInfo productInfo, RequestFormat requestFormat, EnrollmentType enrollmentType)
5959
{
6060
_logger.MethodEntry(LogLevel.Trace);
61+
_logger.LogDebug($"Enrolling for certificate with subject {subject}");
62+
foreach (var sanlist in san)
63+
{
64+
string sans = string.Join(",", sanlist.Value);
65+
_logger.LogDebug($"SANs type \"{sanlist.Key}\": {sans}");
66+
}
6167
OrderResponse orderResponse = new OrderResponse();
6268
CertCentralCertType certType = CertCentralCertType.GetAllTypes(_config).FirstOrDefault(x => x.ProductCode.Equals(productInfo.ProductID));
6369
OrderRequest orderRequest = new OrderRequest(certType);

0 commit comments

Comments
 (0)