@itentialopensource/adapter-digicert_pki 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CALLS.md +1245 -0
  2. package/CHANGELOG.md +8 -1
  3. package/adapter.js +13519 -0
  4. package/entities/ACME/action.json +166 -0
  5. package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
  6. package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
  7. package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
  8. package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
  9. package/entities/ACME/schema.json +125 -0
  10. package/entities/AuthenticationCACertificates/action.json +107 -0
  11. package/entities/AuthenticationCACertificates/schema.json +155 -0
  12. package/entities/AuthenticationCATemplates/action.json +187 -0
  13. package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
  14. package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
  15. package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
  16. package/entities/AuthenticationCATemplates/schema.json +137 -0
  17. package/entities/AuthenticationCertificates/action.json +166 -0
  18. package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
  19. package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
  20. package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
  21. package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
  22. package/entities/AuthenticationCertificates/schema.json +202 -0
  23. package/entities/BatchCertificateEnrollment/action.json +268 -0
  24. package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
  25. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
  26. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
  27. package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
  28. package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
  29. package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
  30. package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
  31. package/entities/BatchCertificateEnrollment/schema.json +284 -0
  32. package/entities/CertificateProfiles/action.json +206 -0
  33. package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
  34. package/entities/CertificateProfiles/schema.json +116 -0
  35. package/entities/CertificateRequests/action.json +25 -0
  36. package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
  37. package/entities/CertificateRequests/schema.json +30 -0
  38. package/entities/CertificateTemplates/action.json +186 -0
  39. package/entities/CertificateTemplates/schema.json +104 -0
  40. package/entities/Certificates/action.json +312 -0
  41. package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
  42. package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
  43. package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
  44. package/entities/Certificates/schema.json +462 -0
  45. package/entities/DeviceProfiles/action.json +126 -0
  46. package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
  47. package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
  48. package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
  49. package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
  50. package/entities/DeviceProfiles/schema.json +57 -0
  51. package/entities/Devices/action.json +166 -0
  52. package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
  53. package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
  54. package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
  55. package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
  56. package/entities/Devices/schema.json +103 -0
  57. package/entities/DevicesV2/action.json +186 -0
  58. package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
  59. package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
  60. package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
  61. package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
  62. package/entities/DevicesV2/schema.json +115 -0
  63. package/entities/Divisions/action.json +288 -0
  64. package/entities/Divisions/schema.json +164 -0
  65. package/entities/EnrollmentProfilePasscodes/action.json +186 -0
  66. package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
  67. package/entities/EnrollmentProfiles/action.json +191 -0
  68. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
  69. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
  70. package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
  71. package/entities/EnrollmentProfiles/schema.json +148 -0
  72. package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
  73. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
  74. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
  75. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
  76. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
  77. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
  78. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
  79. package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
  80. package/entities/Gateways/action.json +187 -0
  81. package/entities/Gateways/schema.json +126 -0
  82. package/entities/ICAs/action.json +46 -0
  83. package/entities/ICAs/schema.json +163 -0
  84. package/entities/OCSPGroups/action.json +167 -0
  85. package/entities/OCSPGroups/schema.json +466 -0
  86. package/package.json +1 -1
  87. package/pronghorn.json +22589 -32
  88. package/refs?service=git-upload-pack +0 -0
  89. package/report/adapterInfo.json +7 -7
  90. package/sampleProperties.json +3 -3
  91. package/test/integration/adapterTestIntegration.js +4544 -0
  92. package/test/unit/adapterTestUnit.js +4866 -0
@@ -0,0 +1,312 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listCertificates",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/api/v1/certificate?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getExampleCertificateRequestCertificateID",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/api/v1/certificate/{pathv1}/example-request?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": ""
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "renewCertificate",
47
+ "protocol": "REST",
48
+ "method": "PUT",
49
+ "entitypath": "{base_path}/{version}/api/v1/certificate/{pathv1}/renew?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/renewCertificate-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "renewBySerial",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/api/v1/certificate/serial-number/{pathv1}/renew?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": "mockdatafiles/renewBySerial-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "revokeCertificate",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "{base_path}/{version}/api/v1/certificate/{pathv1}/revoke?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "updateNote",
107
+ "protocol": "REST",
108
+ "method": "PUT",
109
+ "entitypath": "{base_path}/{version}/api/v1/certificate/{pathv1}/note?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "revokeCertificateBySerialNumber",
127
+ "protocol": "REST",
128
+ "method": "PUT",
129
+ "entitypath": "{base_path}/{version}/api/v1/certificate/serial-number/{pathv1}/revoke?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": ""
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "downloadCertificate",
147
+ "protocol": "REST",
148
+ "method": "GET",
149
+ "entitypath": "{base_path}/{version}/api/v1/certificate/{pathv1}/download/{pathv2}?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "sendGetBody": false,
155
+ "requestDatatype": "JSON",
156
+ "responseDatatype": "JSON",
157
+ "headers": {},
158
+ "responseObjects": [
159
+ {
160
+ "type": "default",
161
+ "key": "",
162
+ "mockFile": ""
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "name": "downloadCertificateBySerialNumber",
168
+ "protocol": "REST",
169
+ "method": "GET",
170
+ "entitypath": "{base_path}/{version}/api/v1/certificate/serial-number/{pathv1}/download/{pathv2}?{query}",
171
+ "requestSchema": "schema.json",
172
+ "responseSchema": "schema.json",
173
+ "timeout": 0,
174
+ "sendEmpty": false,
175
+ "sendGetBody": false,
176
+ "requestDatatype": "JSON",
177
+ "responseDatatype": "JSON",
178
+ "headers": {},
179
+ "responseObjects": [
180
+ {
181
+ "type": "default",
182
+ "key": "",
183
+ "mockFile": ""
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "name": "importCertificate",
189
+ "protocol": "REST",
190
+ "method": "POST",
191
+ "entitypath": "{base_path}/{version}/api/v1/certificate-import/{pathv1}?{query}",
192
+ "requestSchema": "schema.json",
193
+ "responseSchema": "schema.json",
194
+ "timeout": 0,
195
+ "sendEmpty": false,
196
+ "requestDatatype": "FORM",
197
+ "responseDatatype": "JSON",
198
+ "headers": {},
199
+ "responseObjects": [
200
+ {
201
+ "type": "default",
202
+ "key": "",
203
+ "mockFile": ""
204
+ }
205
+ ]
206
+ },
207
+ {
208
+ "name": "getImportDetails",
209
+ "protocol": "REST",
210
+ "method": "GET",
211
+ "entitypath": "{base_path}/{version}/api/v1/certificate-import/job/{pathv1}?{query}",
212
+ "requestSchema": "schema.json",
213
+ "responseSchema": "schema.json",
214
+ "timeout": 0,
215
+ "sendEmpty": false,
216
+ "sendGetBody": false,
217
+ "requestDatatype": "JSON",
218
+ "responseDatatype": "JSON",
219
+ "headers": {},
220
+ "responseObjects": [
221
+ {
222
+ "type": "default",
223
+ "key": "",
224
+ "mockFile": ""
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "name": "getCertificateStatus",
230
+ "protocol": "REST",
231
+ "method": "GET",
232
+ "entitypath": "{base_path}/{version}/api/v1/certificate-status/{pathv1}?{query}",
233
+ "requestSchema": "schema.json",
234
+ "responseSchema": "schema.json",
235
+ "timeout": 0,
236
+ "sendEmpty": false,
237
+ "sendGetBody": false,
238
+ "requestDatatype": "JSON",
239
+ "responseDatatype": "JSON",
240
+ "headers": {},
241
+ "responseObjects": [
242
+ {
243
+ "type": "default",
244
+ "key": "",
245
+ "mockFile": ""
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "name": "getCertificateStatusById",
251
+ "protocol": "REST",
252
+ "method": "GET",
253
+ "entitypath": "{base_path}/{version}/api/v1/certificate-status/certificate-id/{pathv1}?{query}",
254
+ "requestSchema": "schema.json",
255
+ "responseSchema": "schema.json",
256
+ "timeout": 0,
257
+ "sendEmpty": false,
258
+ "sendGetBody": false,
259
+ "requestDatatype": "JSON",
260
+ "responseDatatype": "JSON",
261
+ "headers": {},
262
+ "responseObjects": [
263
+ {
264
+ "type": "default",
265
+ "key": "",
266
+ "mockFile": ""
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "name": "listCertificatesByCertificateValue",
272
+ "protocol": "REST",
273
+ "method": "GET",
274
+ "entitypath": "{base_path}/{version}/api/v1/certificate/certificate-value/{pathv1}?{query}",
275
+ "requestSchema": "schema.json",
276
+ "responseSchema": "schema.json",
277
+ "timeout": 0,
278
+ "sendEmpty": false,
279
+ "sendGetBody": false,
280
+ "requestDatatype": "JSON",
281
+ "responseDatatype": "JSON",
282
+ "headers": {},
283
+ "responseObjects": [
284
+ {
285
+ "type": "default",
286
+ "key": "",
287
+ "mockFile": ""
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "name": "downloadApprovedCertificate",
293
+ "protocol": "REST",
294
+ "method": "POST",
295
+ "entitypath": "{base_path}/{version}/api/v1/certificate/{pathv1}/download-approved-certificate?{query}",
296
+ "requestSchema": "schema.json",
297
+ "responseSchema": "schema.json",
298
+ "timeout": 0,
299
+ "sendEmpty": false,
300
+ "requestDatatype": "JSON",
301
+ "responseDatatype": "JSON",
302
+ "headers": {},
303
+ "responseObjects": [
304
+ {
305
+ "type": "default",
306
+ "key": "",
307
+ "mockFile": "mockdatafiles/downloadApprovedCertificate-default.json"
308
+ }
309
+ ]
310
+ }
311
+ ]
312
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "certificate_request_id": "1a4e7b7b-03cf-40ff-a93c-41cc0edf220c",
3
+ "status": "AUTO_APPROVED",
4
+ "result": "SUCCESS",
5
+ "certificate_id": "df832ffd-7d5c-4277-99dc-99a1e2b20fc9",
6
+ "pem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
7
+ "ica": "MII...",
8
+ "chain": [
9
+ {
10
+ "type": null,
11
+ "body": "<certificate_data>"
12
+ },
13
+ {
14
+ "type": null,
15
+ "body": "<certificate_data>"
16
+ },
17
+ {
18
+ "type": null,
19
+ "body": "<certificate_data>"
20
+ },
21
+ {
22
+ "type": null,
23
+ "body": "<certificate_data>"
24
+ },
25
+ {
26
+ "type": null,
27
+ "body": "<certificate_data>"
28
+ },
29
+ {
30
+ "type": null,
31
+ "body": "<certificate_data>"
32
+ },
33
+ {
34
+ "type": null,
35
+ "body": "<certificate_data>"
36
+ },
37
+ {
38
+ "type": null,
39
+ "body": "<certificate_data>"
40
+ },
41
+ {
42
+ "type": null,
43
+ "body": "<certificate_data>"
44
+ }
45
+ ],
46
+ "private_key": "<private_key>"
47
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "certificate_request_id": "1a4e7b7b-03cf-40ff-a93c-41cc0edf220c",
3
+ "status": "AUTO_APPROVED",
4
+ "result": "SUCCESS",
5
+ "certificate_id": "df832ffd-7d5c-4277-99dc-99a1e2b20fc9",
6
+ "pem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
7
+ "ica": "MII...",
8
+ "chain": [
9
+ {
10
+ "type": null,
11
+ "body": "<certificate_data>"
12
+ },
13
+ {
14
+ "type": null,
15
+ "body": "<certificate_data>"
16
+ },
17
+ {
18
+ "type": null,
19
+ "body": "<certificate_data>"
20
+ }
21
+ ],
22
+ "private_key": "<private_key>"
23
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "certificate_request_id": "1a4e7b7b-03cf-40ff-a93c-41cc0edf220c",
3
+ "status": "AUTO_APPROVED",
4
+ "result": "SUCCESS",
5
+ "certificate_id": "df832ffd-7d5c-4277-99dc-99a1e2b20fc9",
6
+ "pem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
7
+ "ica": "MII...",
8
+ "chain": [
9
+ {
10
+ "type": null,
11
+ "body": "<certificate_data>"
12
+ },
13
+ {
14
+ "type": null,
15
+ "body": "<certificate_data>"
16
+ },
17
+ {
18
+ "type": null,
19
+ "body": "<certificate_data>"
20
+ },
21
+ {
22
+ "type": null,
23
+ "body": "<certificate_data>"
24
+ },
25
+ {
26
+ "type": null,
27
+ "body": "<certificate_data>"
28
+ }
29
+ ],
30
+ "private_key": "<private_key>"
31
+ }