Skip to content

Commit 1320855

Browse files
committed
Add ContactName to the template parameters
1 parent 7ee3fee commit 1320855

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

globalsign-mssl-caplugin/Client/GlobalSignApiClient.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ public async Task<List<OrderDetail>> GetCertificatesForSyncAsync(
5454
var results = new List<OrderDetail>();
5555
if (fullSync)
5656
{
57-
// If startDate is before year 2000, treat it as “since the dawn of time”
58-
var from = startDate > new DateTime(2000, 1, 1)
59-
? startDate
60-
: DateTime.MinValue;
57+
58+
var from = startDate;
6159
var finalStop = DateTime.UtcNow;
6260

6361
// first window

globalsign-mssl-caplugin/Constants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ public static class EnrollmentConfigConstants
3131
public const string SlotSize = "SlotSize";
3232
public const string CertificateValidityInYears = "CertificateValidityInYears";
3333
public const string MSSLProfileId = "MSSLProfileId";
34+
public const string ContactName = "ContactName";
3435
}

globalsign-mssl-caplugin/GlobalSignCAPlugin.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,14 @@ public Dictionary<string, PropertyConfigInfo> GetTemplateParameterAnnotations()
732732
Hidden = false,
733733
DefaultValue = null,
734734
Type = "String"
735+
},
736+
[EnrollmentConfigConstants.ContactName] = new()
737+
{
738+
Comments =
739+
"The name of the contact to use for enrollments. Can be specified here or via an Enrollment Field in Command. Enrollment Fields will override any value supplied here.",
740+
Hidden = false,
741+
DefaultValue = "",
742+
Type = "String"
735743
}
736744
};
737745
}

0 commit comments

Comments
 (0)