@itentialopensource/adapter-digicert_pki 0.1.1 → 1.1.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 (125) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/CALLS.md +957 -3
  4. package/CHANGELOG.md +16 -1
  5. package/CONTRIBUTING.md +1 -160
  6. package/ENHANCE.md +2 -2
  7. package/README.md +31 -22
  8. package/adapter.js +13682 -334
  9. package/adapterBase.js +538 -873
  10. package/changelogs/changelog.md +16 -0
  11. package/entities/ACME/action.json +166 -0
  12. package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
  13. package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
  14. package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
  15. package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
  16. package/entities/ACME/schema.json +125 -0
  17. package/entities/AuthenticationCACertificates/action.json +107 -0
  18. package/entities/AuthenticationCACertificates/schema.json +155 -0
  19. package/entities/AuthenticationCATemplates/action.json +187 -0
  20. package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
  21. package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
  22. package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
  23. package/entities/AuthenticationCATemplates/schema.json +137 -0
  24. package/entities/AuthenticationCertificates/action.json +166 -0
  25. package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
  26. package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
  27. package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
  28. package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
  29. package/entities/AuthenticationCertificates/schema.json +202 -0
  30. package/entities/BatchCertificateEnrollment/action.json +268 -0
  31. package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
  32. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
  33. package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
  34. package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
  35. package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
  36. package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
  37. package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
  38. package/entities/BatchCertificateEnrollment/schema.json +284 -0
  39. package/entities/CertificateProfiles/action.json +206 -0
  40. package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
  41. package/entities/CertificateProfiles/schema.json +116 -0
  42. package/entities/CertificateRequests/action.json +25 -0
  43. package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
  44. package/entities/CertificateRequests/schema.json +30 -0
  45. package/entities/CertificateTemplates/action.json +186 -0
  46. package/entities/CertificateTemplates/schema.json +104 -0
  47. package/entities/Certificates/action.json +312 -0
  48. package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
  49. package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
  50. package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
  51. package/entities/Certificates/schema.json +462 -0
  52. package/entities/DeviceProfiles/action.json +126 -0
  53. package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
  54. package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
  55. package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
  56. package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
  57. package/entities/DeviceProfiles/schema.json +57 -0
  58. package/entities/Devices/action.json +166 -0
  59. package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
  60. package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
  61. package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
  62. package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
  63. package/entities/Devices/schema.json +103 -0
  64. package/entities/DevicesV2/action.json +186 -0
  65. package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
  66. package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
  67. package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
  68. package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
  69. package/entities/DevicesV2/schema.json +115 -0
  70. package/entities/Divisions/action.json +288 -0
  71. package/entities/Divisions/schema.json +164 -0
  72. package/entities/EnrollmentProfilePasscodes/action.json +186 -0
  73. package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
  74. package/entities/EnrollmentProfiles/action.json +191 -0
  75. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
  76. package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
  77. package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
  78. package/entities/EnrollmentProfiles/schema.json +148 -0
  79. package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
  80. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
  81. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
  82. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
  83. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
  84. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
  85. package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
  86. package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
  87. package/entities/Gateways/action.json +187 -0
  88. package/entities/Gateways/schema.json +126 -0
  89. package/entities/ICAs/action.json +46 -0
  90. package/entities/ICAs/schema.json +163 -0
  91. package/entities/OCSPGroups/action.json +167 -0
  92. package/entities/OCSPGroups/schema.json +466 -0
  93. package/metadata.json +49 -0
  94. package/package.json +22 -25
  95. package/pronghorn.json +23155 -266
  96. package/propertiesSchema.json +455 -42
  97. package/refs?service=git-upload-pack +0 -0
  98. package/report/adapter-openapi.json +3224 -0
  99. package/report/adapter-openapi.yaml +2185 -0
  100. package/report/adapterInfo.json +8 -8
  101. package/report/updateReport1691508686598.json +120 -0
  102. package/report/updateReport1692203137726.json +120 -0
  103. package/report/updateReport1694467869659.json +120 -0
  104. package/report/updateReport1698422457936.json +120 -0
  105. package/sampleProperties.json +67 -6
  106. package/test/integration/adapterTestBasicGet.js +1 -1
  107. package/test/integration/adapterTestConnectivity.js +91 -42
  108. package/test/integration/adapterTestIntegration.js +4704 -32
  109. package/test/unit/adapterBaseTestUnit.js +388 -313
  110. package/test/unit/adapterTestUnit.js +5211 -148
  111. package/utils/adapterInfo.js +1 -1
  112. package/utils/addAuth.js +1 -1
  113. package/utils/artifactize.js +1 -1
  114. package/utils/checkMigrate.js +1 -1
  115. package/utils/entitiesToDB.js +1 -0
  116. package/utils/findPath.js +1 -1
  117. package/utils/methodDocumentor.js +71 -23
  118. package/utils/modify.js +13 -15
  119. package/utils/packModificationScript.js +1 -1
  120. package/utils/taskMover.js +309 -0
  121. package/utils/tbScript.js +3 -10
  122. package/utils/tbUtils.js +2 -3
  123. package/utils/testRunner.js +1 -1
  124. package/utils/troubleshootingAdapter.js +1 -3
  125. package/workflows/README.md +0 -3
@@ -0,0 +1,181 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "listEnrollmentPasscodes",
14
+ "createEnrollmentPasscode",
15
+ "getEnrollmentPasscodeDetails",
16
+ "updateEnrollmentPasscode",
17
+ "deleteEnrollmentPasscode",
18
+ "restoreEnrollmentPasscode",
19
+ "disableEnrollmentPasscode",
20
+ "enableEnrollmentPasscode",
21
+ "regenerateEnrollmentPasscode"
22
+ ],
23
+ "external_name": "ph_request_type"
24
+ },
25
+ "accountId": {
26
+ "type": "string",
27
+ "description": "Limits results to enrollment passcodes for the account with the given ID.",
28
+ "parse": false,
29
+ "encode": false,
30
+ "encrypt": {
31
+ "type": "AES",
32
+ "key": ""
33
+ },
34
+ "external_name": "account_id"
35
+ },
36
+ "divisionId": {
37
+ "type": "string",
38
+ "description": "Limits results to enrollment passcodes for the division with the given ID.",
39
+ "parse": false,
40
+ "encode": false,
41
+ "encrypt": {
42
+ "type": "AES",
43
+ "key": ""
44
+ },
45
+ "external_name": "division_id"
46
+ },
47
+ "enrollmentProfileId": {
48
+ "type": "string",
49
+ "description": "Limits results to enrollment passcodes for the enrollment profile with the given ID.",
50
+ "parse": false,
51
+ "encode": false,
52
+ "encrypt": {
53
+ "type": "AES",
54
+ "key": ""
55
+ },
56
+ "external_name": "enrollment_profile_id"
57
+ },
58
+ "enrollmentProfileName": {
59
+ "type": "string",
60
+ "description": "Limits results to enrollment passcodes for enrollment profiles with a name that contains the given string. Case-insensitive.",
61
+ "parse": false,
62
+ "encode": false,
63
+ "encrypt": {
64
+ "type": "AES",
65
+ "key": ""
66
+ },
67
+ "external_name": "enrollment_profile_name"
68
+ },
69
+ "deviceProfileId": {
70
+ "type": "string",
71
+ "description": "Limits results to enrollment passcodes for a device profile with the given ID.",
72
+ "parse": false,
73
+ "encode": false,
74
+ "encrypt": {
75
+ "type": "AES",
76
+ "key": ""
77
+ },
78
+ "external_name": "device_profile_id"
79
+ },
80
+ "createdFrom": {
81
+ "type": "string",
82
+ "description": "Limits results to enrollment passcodes created after the given date. Format: `YYYY-MM-DD`",
83
+ "parse": false,
84
+ "encode": false,
85
+ "encrypt": {
86
+ "type": "AES",
87
+ "key": ""
88
+ },
89
+ "external_name": "created_from"
90
+ },
91
+ "createdTo": {
92
+ "type": "string",
93
+ "description": "Limits results to enrollment passcodes created before the given date. Format: `YYYY-MM-DD`",
94
+ "parse": false,
95
+ "encode": false,
96
+ "encrypt": {
97
+ "type": "AES",
98
+ "key": ""
99
+ },
100
+ "external_name": "created_to"
101
+ },
102
+ "usageLimitFrom": {
103
+ "type": "number",
104
+ "description": "Limits results to enrollment passcodes with a usage limit higher than the given number. Inclusive.",
105
+ "parse": false,
106
+ "encode": false,
107
+ "encrypt": {
108
+ "type": "AES",
109
+ "key": ""
110
+ },
111
+ "external_name": "usage_limit_from"
112
+ },
113
+ "usageLimitTo": {
114
+ "type": "number",
115
+ "description": "Limits results to enrollment passcodes with a usage limit lower than the given number. Inclusive.",
116
+ "parse": false,
117
+ "encode": false,
118
+ "encrypt": {
119
+ "type": "AES",
120
+ "key": ""
121
+ },
122
+ "external_name": "usage_limit_to"
123
+ },
124
+ "expiresFrom": {
125
+ "type": "string",
126
+ "description": "Limits results to enrollment passcodes that expire after the given date. Format: `YYYY-MM-DD`",
127
+ "parse": false,
128
+ "encode": false,
129
+ "encrypt": {
130
+ "type": "AES",
131
+ "key": ""
132
+ },
133
+ "external_name": "expires_from"
134
+ },
135
+ "expiresTo": {
136
+ "type": "string",
137
+ "description": "Limits results to enrollment passcodes that expire before the given date Format: `YYYY-MM-DD`",
138
+ "parse": false,
139
+ "encode": false,
140
+ "encrypt": {
141
+ "type": "AES",
142
+ "key": ""
143
+ },
144
+ "external_name": "expires_to"
145
+ },
146
+ "sortBy": {
147
+ "type": "",
148
+ "description": "Sorts results by the given property. Case-insensitive.",
149
+ "parse": false,
150
+ "encode": false,
151
+ "encrypt": {
152
+ "type": "AES",
153
+ "key": ""
154
+ },
155
+ "external_name": "sort_by"
156
+ },
157
+ "sortDirection": {
158
+ "type": "",
159
+ "description": "Sorts results in ascending (`ASC`) or descending (`DESC`) order by the value of the `sort_by` property. Case-insensitive.",
160
+ "parse": false,
161
+ "encode": false,
162
+ "encrypt": {
163
+ "type": "AES",
164
+ "key": ""
165
+ },
166
+ "external_name": "sort_direction"
167
+ },
168
+ "passcodeId": {
169
+ "type": "",
170
+ "description": "",
171
+ "parse": false,
172
+ "encode": false,
173
+ "encrypt": {
174
+ "type": "AES",
175
+ "key": ""
176
+ },
177
+ "external_name": "passcode_id"
178
+ }
179
+ },
180
+ "definitions": {}
181
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "listEnrollmentProfiles",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile?{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": "createEnrollmentProfile",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getExampleCertificateRequestEnrollmentProfileID",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}/example-request?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "getEnrollmentProfile",
67
+ "protocol": "REST",
68
+ "method": "GET",
69
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "sendGetBody": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": "mockdatafiles/getEnrollmentProfile-default.json"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "updateEnrollmentProfile",
88
+ "protocol": "REST",
89
+ "method": "PUT",
90
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "requestDatatype": "JSON",
96
+ "responseDatatype": "JSON",
97
+ "headers": {},
98
+ "responseObjects": [
99
+ {
100
+ "type": "default",
101
+ "key": "",
102
+ "mockFile": "mockdatafiles/updateEnrollmentProfile-default.json"
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "name": "listAssignableICAs",
108
+ "protocol": "REST",
109
+ "method": "GET",
110
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}/assignable-ca?{query}",
111
+ "requestSchema": "schema.json",
112
+ "responseSchema": "schema.json",
113
+ "timeout": 0,
114
+ "sendEmpty": false,
115
+ "sendGetBody": false,
116
+ "requestDatatype": "JSON",
117
+ "responseDatatype": "JSON",
118
+ "headers": {},
119
+ "responseObjects": [
120
+ {
121
+ "type": "default",
122
+ "key": "",
123
+ "mockFile": ""
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "name": "getIssuingICA",
129
+ "protocol": "REST",
130
+ "method": "GET",
131
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}/issuer?{query}",
132
+ "requestSchema": "schema.json",
133
+ "responseSchema": "schema.json",
134
+ "timeout": 0,
135
+ "sendEmpty": false,
136
+ "sendGetBody": false,
137
+ "requestDatatype": "JSON",
138
+ "responseDatatype": "JSON",
139
+ "headers": {},
140
+ "responseObjects": [
141
+ {
142
+ "type": "default",
143
+ "key": "",
144
+ "mockFile": ""
145
+ }
146
+ ]
147
+ },
148
+ {
149
+ "name": "getEnrollmentProfileSpecification",
150
+ "protocol": "REST",
151
+ "method": "GET",
152
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}/enrollment-specification?{query}",
153
+ "requestSchema": "schema.json",
154
+ "responseSchema": "schema.json",
155
+ "timeout": 0,
156
+ "sendEmpty": false,
157
+ "sendGetBody": false,
158
+ "requestDatatype": "JSON",
159
+ "responseDatatype": "JSON",
160
+ "headers": {},
161
+ "responseObjects": [
162
+ {
163
+ "type": "default",
164
+ "key": "",
165
+ "mockFile": "mockdatafiles/getEnrollmentProfileSpecification-default.json"
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "name": "getEnrollmentProfileStatus",
171
+ "protocol": "REST",
172
+ "method": "GET",
173
+ "entitypath": "{base_path}/{version}/api/v1/enrollment-profile/{pathv1}/status?{query}",
174
+ "requestSchema": "schema.json",
175
+ "responseSchema": "schema.json",
176
+ "timeout": 0,
177
+ "sendEmpty": false,
178
+ "sendGetBody": false,
179
+ "requestDatatype": "JSON",
180
+ "responseDatatype": "JSON",
181
+ "headers": {},
182
+ "responseObjects": [
183
+ {
184
+ "type": "default",
185
+ "key": "",
186
+ "mockFile": ""
187
+ }
188
+ ]
189
+ }
190
+ ]
191
+ }
@@ -0,0 +1,153 @@
1
+ {
2
+ "name": "Example name",
3
+ "enrollment_methods": [
4
+ "API",
5
+ "PORTAL"
6
+ ],
7
+ "allowed_ip_addresses": [
8
+ "1.1.1.1",
9
+ "2.2.2.2"
10
+ ],
11
+ "allowed_hours_from": "09:45:00",
12
+ "allowed_hours_to": "17:30:00",
13
+ "timezone": "America/New_York",
14
+ "valid_from": "2021-06-25",
15
+ "expires_on": "2022-06-25",
16
+ "key_generation_allow_to_change": true,
17
+ "key_generation_option": null,
18
+ "key_generation_type": null,
19
+ "allow_key_cache": false,
20
+ "key_cache_validity_period_type": null,
21
+ "key_cache_validity_period": "string",
22
+ "require_approval_for_enroll": false,
23
+ "require_approval_for_renew": false,
24
+ "digest_email_notification_period": null,
25
+ "approvers": [
26
+ {
27
+ "id": "4db36e5c-4bb8-4a41-a941-1b31a82529bd",
28
+ "full_name": "John Doe",
29
+ "email": "john.doe@example.com",
30
+ "active": true,
31
+ "user_type": null,
32
+ "locale": null
33
+ },
34
+ {
35
+ "id": "4db36e5c-4bb8-4a41-a941-1b31a82529bd",
36
+ "full_name": "John Doe",
37
+ "email": "john.doe@example.com",
38
+ "active": true,
39
+ "user_type": null,
40
+ "locale": null
41
+ }
42
+ ],
43
+ "notification_email_list": [
44
+ "string",
45
+ "string",
46
+ "string",
47
+ "string",
48
+ "string",
49
+ "string",
50
+ "string",
51
+ "string"
52
+ ],
53
+ "id": "IOT_502ac648-c826-4e71-991e-5629a23850c1",
54
+ "connector_url": "https://one.digicert.com",
55
+ "connector_type": null,
56
+ "passcode": "passcode",
57
+ "api_key": "<api_token>",
58
+ "auth_cert_pkcs12": "<auth_cert_pkcs12>",
59
+ "auth_cert_password_pkcs12": "passcode",
60
+ "external_enrollment_profile_id": "string",
61
+ "device_profile": {
62
+ "id": "f5218cc5-fd11-47ac-bff8-0058f8e2d0ed",
63
+ "name": "Device profile name"
64
+ },
65
+ "certificate_profile": {
66
+ "id": "880daffe-e70f-4eb3-bfd5-673419cef80b",
67
+ "name": "Certificate profile name"
68
+ },
69
+ "created_at": "2021-06-09T13:49:54Z",
70
+ "ica": {
71
+ "id": "AAC2E2DD6BEAE2E5EE93954BAE15E34D",
72
+ "name": "ICA Name"
73
+ },
74
+ "status": null,
75
+ "allowed_signature_algorithms": [
76
+ "sha1WithRSA",
77
+ "sha256WithRSA",
78
+ "sha384WithRSA",
79
+ "sha512WithRSA"
80
+ ],
81
+ "direct_mapping": true,
82
+ "account_id": "742a7efb-0cf1-499d-abd5-abb87f42aa5f",
83
+ "ca_body": "<certificate_data>",
84
+ "gp_ca_body": "<certificate_data>",
85
+ "ca_chain": [
86
+ {
87
+ "cert_type": null,
88
+ "blob": "<certificate_data>"
89
+ },
90
+ {
91
+ "cert_type": null,
92
+ "blob": "<certificate_data>"
93
+ },
94
+ {
95
+ "cert_type": null,
96
+ "blob": "<certificate_data>"
97
+ },
98
+ {
99
+ "cert_type": null,
100
+ "blob": "<certificate_data>"
101
+ },
102
+ {
103
+ "cert_type": null,
104
+ "blob": "<certificate_data>"
105
+ },
106
+ {
107
+ "cert_type": null,
108
+ "blob": "<certificate_data>"
109
+ },
110
+ {
111
+ "cert_type": null,
112
+ "blob": "<certificate_data>"
113
+ }
114
+ ],
115
+ "gp_ca_chain": [
116
+ {
117
+ "cert_type": null,
118
+ "blob": "<certificate_data>"
119
+ },
120
+ {
121
+ "cert_type": null,
122
+ "blob": "<certificate_data>"
123
+ },
124
+ {
125
+ "cert_type": null,
126
+ "blob": "<certificate_data>"
127
+ },
128
+ {
129
+ "cert_type": null,
130
+ "blob": "<certificate_data>"
131
+ },
132
+ {
133
+ "cert_type": null,
134
+ "blob": "<certificate_data>"
135
+ },
136
+ {
137
+ "cert_type": null,
138
+ "blob": "<certificate_data>"
139
+ },
140
+ {
141
+ "cert_type": null,
142
+ "blob": "<certificate_data>"
143
+ },
144
+ {
145
+ "cert_type": null,
146
+ "blob": "<certificate_data>"
147
+ }
148
+ ],
149
+ "certificate_template": {
150
+ "id": "ebe32558-6485-4810-938b-56882daed038",
151
+ "name": "Certificate Template Name"
152
+ }
153
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "fields": [
3
+ {
4
+ "id": "csr",
5
+ "name": "csr",
6
+ "type": "CERTIFICATE",
7
+ "mandatory": true,
8
+ "editable": true,
9
+ "update_from_csr": false,
10
+ "value_type": {
11
+ "type": "string",
12
+ "options": false,
13
+ "multiple": false
14
+ }
15
+ },
16
+ {
17
+ "id": "signature_algorithm",
18
+ "name": "signature_algorithm",
19
+ "type": "CERTIFICATE",
20
+ "mandatory": true,
21
+ "editable": false,
22
+ "update_from_csr": false,
23
+ "value_type": {
24
+ "type": "string",
25
+ "options": true,
26
+ "multiple": false
27
+ },
28
+ "default_value": "match_issuer",
29
+ "options": [
30
+ "sha1WithRSA",
31
+ "sha256WithRSA",
32
+ "sha384WithRSA",
33
+ "sha512WithRSA",
34
+ "match_issuer"
35
+ ]
36
+ },
37
+ {
38
+ "id": "subject.common_name",
39
+ "name": "subject_common_name",
40
+ "type": "CERTIFICATE",
41
+ "mandatory": true,
42
+ "editable": true,
43
+ "update_from_csr": true,
44
+ "value_type": {
45
+ "type": "string",
46
+ "options": false,
47
+ "multiple": false
48
+ }
49
+ },
50
+ {
51
+ "id": "subject.organization_name",
52
+ "name": "subject_organization",
53
+ "type": "CERTIFICATE",
54
+ "mandatory": true,
55
+ "editable": true,
56
+ "update_from_csr": true,
57
+ "value_type": {
58
+ "type": "string",
59
+ "options": false,
60
+ "multiple": false
61
+ }
62
+ },
63
+ {
64
+ "id": "validity.duration_unit",
65
+ "name": "duration_unit",
66
+ "type": "CERTIFICATE",
67
+ "mandatory": true,
68
+ "editable": false,
69
+ "update_from_csr": false,
70
+ "value_type": {
71
+ "type": "string",
72
+ "options": true,
73
+ "multiple": false
74
+ },
75
+ "default_value": "months",
76
+ "options": [
77
+ "days",
78
+ "months",
79
+ "years"
80
+ ]
81
+ },
82
+ {
83
+ "id": "validity.duration_value",
84
+ "name": "duration_value",
85
+ "type": "CERTIFICATE",
86
+ "mandatory": true,
87
+ "editable": false,
88
+ "update_from_csr": false,
89
+ "value_type": {
90
+ "type": "number",
91
+ "options": false,
92
+ "multiple": false
93
+ },
94
+ "default_value": 7
95
+ },
96
+ {
97
+ "id": "DEVICE_IDENTIFIER",
98
+ "name": "Device Identifier",
99
+ "type": "USER",
100
+ "mandatory": true,
101
+ "editable": false,
102
+ "update_from_csr": false,
103
+ "value_type": {
104
+ "type": "string",
105
+ "options": false,
106
+ "multiple": false
107
+ },
108
+ "default_value": "Provided from subject.common_name"
109
+ },
110
+ {
111
+ "id": "7a2ad21e-38da-4d22-b81a-d94a71f6ae64",
112
+ "name": "party-no",
113
+ "type": "USER",
114
+ "mandatory": true,
115
+ "editable": false,
116
+ "update_from_csr": false,
117
+ "value_type": {
118
+ "type": "string",
119
+ "options": false,
120
+ "multiple": false
121
+ },
122
+ "default_value": "Provided from subject.organization_name"
123
+ }
124
+ ]
125
+ }