You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: digicert-certcentral-caplugin/CertCentralCAPlugin.cs
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -615,7 +615,7 @@ public Dictionary<string, PropertyConfigInfo> GetTemplateParameterAnnotations()
615
615
{
616
616
Comments="Optional for secure_email_* types, ignored otherwise. Valid values are: strict, multipurpose. Use 'multipurpose' if your cert includes any additional EKUs such as client auth. Default if not provided is dependent on product configuration within Digicert portal.",
@@ -760,7 +760,9 @@ public async Task Synchronize(BlockingCollection<AnyCAPluginCertificate> blockin
760
760
{
761
761
_logger.MethodEntry(LogLevel.Trace);
762
762
763
-
lastSync=lastSync.HasValue?lastSync.Value.AddHours(-7):DateTime.MinValue;// DigiCert issue with treating the timezone as mountain time. -7 to accomodate DST
763
+
// 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)
thrownewException($"Unexpected error downloading certificate {certId} for order {orderId}: {certificateChainResponse.Errors.FirstOrDefault()?.message}");
1579
1582
}
1580
1583
}
1584
+
//Another check for duplicate PEMs to get arround issue with DigiCert API returning incorrect data sometimes on reissued/duplicate certs
1585
+
if(pemList.Contains(certificate))
1586
+
{
1587
+
_logger.LogWarning($"Found duplicate PEM for ID {caReqId}. Skipping...");
0 commit comments