diff --git a/digicert-certcentral-caplugin/CertCentralCAPlugin.cs b/digicert-certcentral-caplugin/CertCentralCAPlugin.cs index ee90001..344fc22 100644 --- a/digicert-certcentral-caplugin/CertCentralCAPlugin.cs +++ b/digicert-certcentral-caplugin/CertCentralCAPlugin.cs @@ -356,6 +356,7 @@ public Dictionary GetCAConnectorAnnotations() DefaultValue = false, Type = "Boolean" }, + [CertCentralConstants.Config.SYNC_CA_FILTER] = new PropertyConfigInfo() { Comments = "If you list one or more CA IDs here (comma-separated), the sync process will only sync records from those CAs. If you want to sync all CA IDs, leave this field empty.", @@ -642,6 +643,7 @@ public async Task Synchronize(BlockingCollection blockin string syncCAstring = _config.SyncCAFilter ?? string.Empty; _logger.LogTrace($"Sync CAs: {syncCAstring}"); List caList = _config.SyncCAs; + caList.ForEach(c => c.ToUpper()); diff --git a/digicert-certcentral-caplugin/CertCentralConfig.cs b/digicert-certcentral-caplugin/CertCentralConfig.cs index 9c16db3..9ac06eb 100644 --- a/digicert-certcentral-caplugin/CertCentralConfig.cs +++ b/digicert-certcentral-caplugin/CertCentralConfig.cs @@ -11,12 +11,14 @@ public class CertCentralConfig public CertCentralConfig() { + } public string APIKey { get; set; } public string Region { get; set; } = "US"; public int? DivisionId { get; set; } public bool? RevokeCertificateOnly { get; set; } public bool Enabled { get; set; } = true; + public string SyncCAFilter { get; set; } public List SyncCAs { @@ -32,6 +34,7 @@ public List SyncCAs } } } + public bool? FilterExpiredOrders { get; set; } public int? SyncExpirationDays { get; set; } }