Skip to content

Commit 0b6f8a5

Browse files
product fixes
1 parent ddf1330 commit 0b6f8a5

File tree

2 files changed

+25
-21
lines changed

2 files changed

+25
-21
lines changed

cscglobal-caplugin/Constants.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class ProductIDs
2626
"CSC TrustedSecure UC Certificate",
2727
"CSC TrustedSecure Premium Wildcard Certificate",
2828
"CSC TrustedSecure Domain Validated SSL",
29-
"CSC TrustedSecure Domain Validated Wildcard SSL",
30-
"CSC TrustedSecure Domain Validated UC Certificate"
29+
"CSC Trusted Secure Domain Validated Wildcard SSL",
30+
"CSC Trusted Secure Domain Validated UC Certificate"
3131
};
3232
}
3333

cscglobal-caplugin/RequestManager.cs

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -389,41 +389,45 @@ public RegistrationRequest GetRegistrationRequest(EnrollmentProductInfo productI
389389
["CSC TrustedSecure EV Certificate"] = "3",
390390
["CSC TrustedSecure Domain Validated SSL"] = "4",
391391
["CSC Trusted Secure Domain Validated SSL"] = "4",
392-
["CSC TrustedSecure Domain Validated Wildcard SSL"] = "5",
393392
["CSC Trusted Secure Domain Validated Wildcard SSL"] = "5",
394-
["CSC TrustedSecure Domain Validated UC Certificate"] = "6",
395393
["CSC Trusted Secure Domain Validated UC Certificate"] = "6",
396394
};
397395

398-
// Reverse map: CSC API certificate type string -> Keyfactor product ID (used during sync)
399-
// CSC may return numeric codes ("0","1") or descriptive strings ("Premium","EV","UC", etc.)
396+
// Reverse map: CSC API certificateType string -> Keyfactor product ID (used during sync)
397+
// Note: CSC naming is inconsistent — first 4 types use "TrustedSecure" (no space),
398+
// DV Wildcard and DV UC use "Trusted Secure" (with space),
399+
// but CSC API returns DV SSL as "CSC Trusted Secure Domain Validated SSL" (with space)
400+
// while the product ID is "CSC TrustedSecure Domain Validated SSL" (no space).
400401
private static readonly Dictionary<string, string> CodeToProductIdMap = new(StringComparer.OrdinalIgnoreCase)
401402
{
403+
// Premium
402404
["0"] = "CSC TrustedSecure Premium Certificate",
403-
["Premium"] = "CSC TrustedSecure Premium Certificate",
404405
["CSC TrustedSecure Premium Certificate"] = "CSC TrustedSecure Premium Certificate",
406+
["CSC Trusted Secure Premium Certificate"] = "CSC TrustedSecure Premium Certificate",
407+
// Premium Wildcard
405408
["1"] = "CSC TrustedSecure Premium Wildcard Certificate",
406-
["Wildcard"] = "CSC TrustedSecure Premium Wildcard Certificate",
407-
["Premium Wildcard"] = "CSC TrustedSecure Premium Wildcard Certificate",
408409
["CSC TrustedSecure Premium Wildcard Certificate"] = "CSC TrustedSecure Premium Wildcard Certificate",
410+
["CSC Trusted Secure Premium Wildcard Certificate"] = "CSC TrustedSecure Premium Wildcard Certificate",
411+
// UC
409412
["2"] = "CSC TrustedSecure UC Certificate",
410-
["UC"] = "CSC TrustedSecure UC Certificate",
411413
["CSC TrustedSecure UC Certificate"] = "CSC TrustedSecure UC Certificate",
414+
["CSC Trusted Secure UC Certificate"] = "CSC TrustedSecure UC Certificate",
415+
// EV
412416
["3"] = "CSC TrustedSecure EV Certificate",
413-
["EV"] = "CSC TrustedSecure EV Certificate",
414417
["CSC TrustedSecure EV Certificate"] = "CSC TrustedSecure EV Certificate",
418+
["CSC Trusted Secure EV Certificate"] = "CSC TrustedSecure EV Certificate",
419+
// DV SSL — product ID has no space, but CSC API returns with space
415420
["4"] = "CSC TrustedSecure Domain Validated SSL",
416-
["DV"] = "CSC TrustedSecure Domain Validated SSL",
417-
["Domain Validated SSL"] = "CSC TrustedSecure Domain Validated SSL",
418421
["CSC TrustedSecure Domain Validated SSL"] = "CSC TrustedSecure Domain Validated SSL",
419-
["5"] = "CSC TrustedSecure Domain Validated Wildcard SSL",
420-
["DV Wildcard"] = "CSC TrustedSecure Domain Validated Wildcard SSL",
421-
["Domain Validated Wildcard SSL"] = "CSC TrustedSecure Domain Validated Wildcard SSL",
422-
["CSC TrustedSecure Domain Validated Wildcard SSL"] = "CSC TrustedSecure Domain Validated Wildcard SSL",
423-
["6"] = "CSC TrustedSecure Domain Validated UC Certificate",
424-
["DV UC"] = "CSC TrustedSecure Domain Validated UC Certificate",
425-
["Domain Validated UC Certificate"] = "CSC TrustedSecure Domain Validated UC Certificate",
426-
["CSC TrustedSecure Domain Validated UC Certificate"] = "CSC TrustedSecure Domain Validated UC Certificate",
422+
["CSC Trusted Secure Domain Validated SSL"] = "CSC TrustedSecure Domain Validated SSL",
423+
// DV Wildcard — product ID has space (matches CSC API)
424+
["5"] = "CSC Trusted Secure Domain Validated Wildcard SSL",
425+
["CSC Trusted Secure Domain Validated Wildcard SSL"] = "CSC Trusted Secure Domain Validated Wildcard SSL",
426+
["CSC TrustedSecure Domain Validated Wildcard SSL"] = "CSC Trusted Secure Domain Validated Wildcard SSL",
427+
// DV UC — product ID has space (matches CSC API)
428+
["6"] = "CSC Trusted Secure Domain Validated UC Certificate",
429+
["CSC Trusted Secure Domain Validated UC Certificate"] = "CSC Trusted Secure Domain Validated UC Certificate",
430+
["CSC TrustedSecure Domain Validated UC Certificate"] = "CSC Trusted Secure Domain Validated UC Certificate",
427431
};
428432

429433
private string GetCertificateType(string productId)

0 commit comments

Comments
 (0)