Skip to content

Commit

Permalink
Merge branch 'main' into release-2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
doebrowsk authored Jan 23, 2025
2 parents 7dd3e56 + b282e19 commit 69211ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions digicert-certcentral-caplugin/CertCentralCAPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ 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 Expand Up @@ -93,6 +95,7 @@ public async Task<EnrollmentResult> Enroll(string csr, string subject, Dictionar
{
dnsNames = new List<string>(san["Dns"]);
}

if (san.ContainsKey("dnsname"))
{
dnsNames = new List<string>(san["dnsname"]);
Expand Down
1 change: 0 additions & 1 deletion digicert-certcentral-caplugin/CertCentralConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public CertCentralConfig()
public int? DivisionId { get; set; }
public bool? RevokeCertificateOnly { get; set; }
public bool Enabled { get; set; } = true;

public string SyncCAFilter { get; set; }
public List<string> SyncCAs
{
Expand Down

0 comments on commit 69211ee

Please sign in to comment.