Skip to content

Commit

Permalink
log subject and sans on enroll call
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaley committed Dec 20, 2024
1 parent eff9de9 commit a662443
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions digicert-certcentral-caplugin/CertCentralCAPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public void Initialize(IAnyCAPluginConfigProvider configProvider, ICertificateDa
public async Task<EnrollmentResult> Enroll(string csr, string subject, Dictionary<string, string[]> 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);
Expand Down

0 comments on commit a662443

Please sign in to comment.