Commit b760cc8
committed
feat(scripts): stage 02 per-env product codes; document SignerPlace + code mapping
- Add PRODUCT_CODE_MAP_JSON to stage 02 so each Templates[] entry carries the
correct per-environment CERTInext ProductCode. The plugin's built-in defaults
are production codes (e.g. DV SSL=838); sandbox accounts use different codes
(842-851) which the gateway validates at config-PUT time.
- Fix a ${VAR:-{}} brace-default bug that appended a stray '}' to a set value
(broke --argjson when PRODUCT_CODE_MAP_JSON was provided).
- Document in scripts/register/README.md: product codes are per-environment
(names are stable), SignerPlace is required by CERTInext (no fallback), and
/config/configuration has no GET so PUT replaces the full object.
Verified end-to-end: a Command PFX enrollment for AnyCA_DV SSL now reaches
CERTInext and parks at EXTERNAL_VALIDATION (DCV off), instead of failing on a
missing template mapping.1 parent 603d6bd commit b760cc8
2 files changed
Lines changed: 44 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
89 | 99 | | |
90 | 100 | | |
91 | 101 | | |
92 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
93 | 106 | | |
94 | 107 | | |
95 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
90 | 119 | | |
91 | 120 | | |
92 | 121 | | |
| |||
0 commit comments