Skip to content

Commit 03a5fa5

Browse files
authored
Merge pull request #40 from Keyfactor/hotfix
change default incremental sync range
2 parents 8850680 + a64934c commit 03a5fa5

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@
1515
* Add configuration flag to support adding client auth EKU to ssl cert requests
1616
* NOTE: This is a temporary feature which is planned for loss of support by Digicert in May 2026
1717
* For smime certs, use profile type defined on the product as the default if not supplied, rather than just defaulting to 'strict'
18-
* Hotfix for data type conversion
18+
* Hotfix for data type conversion
19+
20+
### 2.1.2
21+
* Hotfix for incremental sync to default to a 6 day window if no previous incremental sync has run
22+
* Workaround for DigiCert API issue where retrieving the PEM data of multiple certificates in the same order can occasionally return duplicate data rather than the correct cert
23+
* Remove caching of product ID lookups from DigiCert account

digicert-certcentral-caplugin/CertCentralCAPlugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,8 @@ public async Task Synchronize(BlockingCollection<AnyCAPluginCertificate> blockin
761761
_logger.MethodEntry(LogLevel.Trace);
762762

763763
// DigiCert issue with treating the timezone as mountain time. -7 hours to accomodate DST
764-
// If no last sync, use 7 days in the past as the starting point (only relevant for incremental syncs)
765-
lastSync = lastSync.HasValue ? lastSync.Value.AddHours(-7) : DateTime.UtcNow.AddDays(-7);
764+
// If no last sync, use a 6 day window for the sync range (only relevant for incremental syncs)
765+
lastSync = lastSync.HasValue ? lastSync.Value.AddHours(-7) : DateTime.UtcNow.AddDays(-5);
766766
DateTime? utcDate = DateTime.UtcNow.AddDays(1);
767767
string lastSyncFormat = FormatSyncDate(lastSync);
768768
string todaySyncFormat = FormatSyncDate(utcDate);

digicert-certcentral-caplugin/digicert-certcentral-caplugin.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>disable</Nullable>
88
<AssemblyName>DigicertCAPlugin</AssemblyName>
9-
<AssemblyVersion>2.1.1</AssemblyVersion>
10-
<FileVersion>2.1.1</FileVersion>
9+
<AssemblyVersion>2.1.2</AssemblyVersion>
10+
<FileVersion>2.1.2</FileVersion>
1111
</PropertyGroup>
1212

1313
<ItemGroup>

0 commit comments

Comments
 (0)