@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.
- package/CALLS.md +1245 -0
- package/CHANGELOG.md +8 -1
- package/adapter.js +13519 -0
- package/entities/ACME/action.json +166 -0
- package/entities/ACME/mockdatafiles/createAcmeAuthentication-default.json +21 -0
- package/entities/ACME/mockdatafiles/getAcmeAuthentication-default.json +21 -0
- package/entities/ACME/mockdatafiles/listAcmeAuthentication-default.json +41 -0
- package/entities/ACME/mockdatafiles/updateAcmeAuthentication-default.json +21 -0
- package/entities/ACME/schema.json +125 -0
- package/entities/AuthenticationCACertificates/action.json +107 -0
- package/entities/AuthenticationCACertificates/schema.json +155 -0
- package/entities/AuthenticationCATemplates/action.json +187 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json +33 -0
- package/entities/AuthenticationCATemplates/schema.json +137 -0
- package/entities/AuthenticationCertificates/action.json +166 -0
- package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json +48 -0
- package/entities/AuthenticationCertificates/mockdatafiles/getAuthenticationCertificateDetails-default.json +49 -0
- package/entities/AuthenticationCertificates/mockdatafiles/listAuthenticationCertificates-default.json +93 -0
- package/entities/AuthenticationCertificates/mockdatafiles/updateAuthenticationCertificate-default.json +48 -0
- package/entities/AuthenticationCertificates/schema.json +202 -0
- package/entities/BatchCertificateEnrollment/action.json +268 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchCSREnroll-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGen-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/batchEnrollWithKeyGenMac-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/downloadCertificates-default.json +18 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/getBatchJobSettings-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/regenerateBatchJobPasscode-default.json +22 -0
- package/entities/BatchCertificateEnrollment/mockdatafiles/updateBatchJobSettings-default.json +22 -0
- package/entities/BatchCertificateEnrollment/schema.json +284 -0
- package/entities/CertificateProfiles/action.json +206 -0
- package/entities/CertificateProfiles/mockdatafiles/listCertificateProfiles-default.json +219 -0
- package/entities/CertificateProfiles/schema.json +116 -0
- package/entities/CertificateRequests/action.json +25 -0
- package/entities/CertificateRequests/mockdatafiles/getRequestStatus-default.json +5 -0
- package/entities/CertificateRequests/schema.json +30 -0
- package/entities/CertificateTemplates/action.json +186 -0
- package/entities/CertificateTemplates/schema.json +104 -0
- package/entities/Certificates/action.json +312 -0
- package/entities/Certificates/mockdatafiles/downloadApprovedCertificate-default.json +47 -0
- package/entities/Certificates/mockdatafiles/renewBySerial-default.json +23 -0
- package/entities/Certificates/mockdatafiles/renewCertificate-default.json +31 -0
- package/entities/Certificates/schema.json +462 -0
- package/entities/DeviceProfiles/action.json +126 -0
- package/entities/DeviceProfiles/mockdatafiles/createDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/mockdatafiles/getDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/mockdatafiles/listdeviceprofiles-default.json +53 -0
- package/entities/DeviceProfiles/mockdatafiles/updateDeviceProfile-default.json +28 -0
- package/entities/DeviceProfiles/schema.json +57 -0
- package/entities/Devices/action.json +166 -0
- package/entities/Devices/mockdatafiles/archiveDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/disableDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/enableDevice-default.json +33 -0
- package/entities/Devices/mockdatafiles/restoreDevice-default.json +33 -0
- package/entities/Devices/schema.json +103 -0
- package/entities/DevicesV2/action.json +186 -0
- package/entities/DevicesV2/mockdatafiles/archiveDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/disableDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/enableDeviceV2-default.json +33 -0
- package/entities/DevicesV2/mockdatafiles/restoreDeviceV2-default.json +33 -0
- package/entities/DevicesV2/schema.json +115 -0
- package/entities/Divisions/action.json +288 -0
- package/entities/Divisions/schema.json +164 -0
- package/entities/EnrollmentProfilePasscodes/action.json +186 -0
- package/entities/EnrollmentProfilePasscodes/schema.json +181 -0
- package/entities/EnrollmentProfiles/action.json +191 -0
- package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfile-default.json +153 -0
- package/entities/EnrollmentProfiles/mockdatafiles/getEnrollmentProfileSpecification-default.json +125 -0
- package/entities/EnrollmentProfiles/mockdatafiles/updateEnrollmentProfile-default.json +117 -0
- package/entities/EnrollmentProfiles/schema.json +148 -0
- package/entities/ExternalBatchCertificateEnrollment/action.json +150 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/batchEnrollExternal-default.json +16 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCertificateValue-default.json +154 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByCommonName-default.json +150 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCertificateValue-default.json +36 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndCommonName-default.json +130 -0
- package/entities/ExternalBatchCertificateEnrollment/mockdatafiles/downloadByJobIdAndUniqueId-default.json +42 -0
- package/entities/ExternalBatchCertificateEnrollment/schema.json +102 -0
- package/entities/Gateways/action.json +187 -0
- package/entities/Gateways/schema.json +126 -0
- package/entities/ICAs/action.json +46 -0
- package/entities/ICAs/schema.json +163 -0
- package/entities/OCSPGroups/action.json +167 -0
- package/entities/OCSPGroups/schema.json +466 -0
- package/package.json +1 -1
- package/pronghorn.json +22589 -32
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +7 -7
- package/sampleProperties.json +3 -3
- package/test/integration/adapterTestIntegration.js +4544 -0
- package/test/unit/adapterTestUnit.js +4866 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "createAuthenticationCATemplate",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": "mockdatafiles/createAuthenticationCATemplate-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "listAuthenticationCATemplate",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": 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": "updateAuthenticationCATemplate",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "PUT",
|
|
48
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": "mockdatafiles/updateAuthenticationCATemplate-default.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "getAuthenticationCATemplate",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "GET",
|
|
68
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/{pathv1}?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"sendGetBody": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": "mockdatafiles/getAuthenticationCATemplate-default.json"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "disableAuthenticationCATemplate",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "PUT",
|
|
89
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/{pathv1}/disable?{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": "deleteAuthenticationCATemplate",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/{pathv1}/delete?{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": "restoreAuthenticationCATemplate",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "PUT",
|
|
129
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/{pathv1}/undelete?{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": "enableAuthenticationCATemplate",
|
|
147
|
+
"protocol": "REST",
|
|
148
|
+
"method": "PUT",
|
|
149
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/{pathv1}/enable?{query}",
|
|
150
|
+
"requestSchema": "schema.json",
|
|
151
|
+
"responseSchema": "schema.json",
|
|
152
|
+
"timeout": 0,
|
|
153
|
+
"sendEmpty": false,
|
|
154
|
+
"requestDatatype": "JSON",
|
|
155
|
+
"responseDatatype": "JSON",
|
|
156
|
+
"headers": {},
|
|
157
|
+
"responseObjects": [
|
|
158
|
+
{
|
|
159
|
+
"type": "default",
|
|
160
|
+
"key": "",
|
|
161
|
+
"mockFile": ""
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "listAssignableAuthenticationCACertificates",
|
|
167
|
+
"protocol": "REST",
|
|
168
|
+
"method": "GET",
|
|
169
|
+
"entitypath": "{base_path}/{version}/api/v1/cert-auth-template/assignable-ca/{pathv1}?{query}",
|
|
170
|
+
"requestSchema": "schema.json",
|
|
171
|
+
"responseSchema": "schema.json",
|
|
172
|
+
"timeout": 0,
|
|
173
|
+
"sendEmpty": false,
|
|
174
|
+
"sendGetBody": false,
|
|
175
|
+
"requestDatatype": "JSON",
|
|
176
|
+
"responseDatatype": "JSON",
|
|
177
|
+
"headers": {},
|
|
178
|
+
"responseObjects": [
|
|
179
|
+
{
|
|
180
|
+
"type": "default",
|
|
181
|
+
"key": "",
|
|
182
|
+
"mockFile": ""
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
}
|
package/entities/AuthenticationCATemplates/mockdatafiles/createAuthenticationCATemplate-default.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "55f6e0e5-8cbf-4f7b-a623-f5b9689a0dc2",
|
|
3
|
+
"name": "Example authentication CA template",
|
|
4
|
+
"certificate_attributes": [
|
|
5
|
+
"subject.common_name",
|
|
6
|
+
"subject.organization_name"
|
|
7
|
+
],
|
|
8
|
+
"registered_values": [
|
|
9
|
+
{
|
|
10
|
+
"certificate_field": "subject.country",
|
|
11
|
+
"matcher": "equals",
|
|
12
|
+
"value": "US",
|
|
13
|
+
"multiple": false
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"enrollment_profile_id": "IOT_58b96f06-bf12-49a4-939e-7247f147ec3e",
|
|
17
|
+
"enrollment_profile_name": "Example enrollment profile",
|
|
18
|
+
"ica_common_name": "IoT Example ICA",
|
|
19
|
+
"ica_body": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
|
|
20
|
+
"organization": "IoT Example Organization",
|
|
21
|
+
"parent_ca": "IoT Example Root",
|
|
22
|
+
"signature_algorithm": "1.2.840.10045.4.3.2",
|
|
23
|
+
"key_type": "EC prime256v1",
|
|
24
|
+
"can_be_used_for_any_certificate": false,
|
|
25
|
+
"certificate_authentication_type": "certificate_body_and_attributes",
|
|
26
|
+
"usage_limit": 20,
|
|
27
|
+
"start_date": "2022-07-21T00:00:00Z",
|
|
28
|
+
"end_date": "2022-07-31T00:00:00Z",
|
|
29
|
+
"expiry_date": "2049-01-01",
|
|
30
|
+
"status": "ACTIVE",
|
|
31
|
+
"created_at": "2022-07-21T10:09:13Z",
|
|
32
|
+
"force_passcode_for_auth_cert": false
|
|
33
|
+
}
|
package/entities/AuthenticationCATemplates/mockdatafiles/getAuthenticationCATemplate-default.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "55f6e0e5-8cbf-4f7b-a623-f5b9689a0dc2",
|
|
3
|
+
"name": "Example authentication CA template",
|
|
4
|
+
"certificate_attributes": [
|
|
5
|
+
"subject.common_name",
|
|
6
|
+
"subject.organization_name"
|
|
7
|
+
],
|
|
8
|
+
"registered_values": [
|
|
9
|
+
{
|
|
10
|
+
"certificate_field": "subject.country",
|
|
11
|
+
"matcher": "equals",
|
|
12
|
+
"value": "US",
|
|
13
|
+
"multiple": false
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"enrollment_profile_id": "IOT_58b96f06-bf12-49a4-939e-7247f147ec3e",
|
|
17
|
+
"enrollment_profile_name": "Example enrollment profile",
|
|
18
|
+
"ica_common_name": "IoT Example ICA",
|
|
19
|
+
"ica_body": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
|
|
20
|
+
"organization": "IoT Example Organization",
|
|
21
|
+
"parent_ca": "IoT Example Root",
|
|
22
|
+
"signature_algorithm": "1.2.840.10045.4.3.2",
|
|
23
|
+
"key_type": "EC prime256v1",
|
|
24
|
+
"can_be_used_for_any_certificate": false,
|
|
25
|
+
"certificate_authentication_type": "certificate_body_and_attributes",
|
|
26
|
+
"usage_limit": 20,
|
|
27
|
+
"start_date": "2022-07-21T00:00:00Z",
|
|
28
|
+
"end_date": "2022-07-31T00:00:00Z",
|
|
29
|
+
"expiry_date": "2049-01-01",
|
|
30
|
+
"status": "ACTIVE",
|
|
31
|
+
"created_at": "2022-07-21T10:09:13Z",
|
|
32
|
+
"force_passcode_for_auth_cert": false
|
|
33
|
+
}
|
package/entities/AuthenticationCATemplates/mockdatafiles/updateAuthenticationCATemplate-default.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "55f6e0e5-8cbf-4f7b-a623-f5b9689a0dc2",
|
|
3
|
+
"name": "Example authentication CA template",
|
|
4
|
+
"certificate_attributes": [
|
|
5
|
+
"subject.common_name",
|
|
6
|
+
"subject.organization_name"
|
|
7
|
+
],
|
|
8
|
+
"registered_values": [
|
|
9
|
+
{
|
|
10
|
+
"certificate_field": "subject.country",
|
|
11
|
+
"matcher": "equals",
|
|
12
|
+
"value": "US",
|
|
13
|
+
"multiple": false
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"enrollment_profile_id": "IOT_58b96f06-bf12-49a4-939e-7247f147ec3e",
|
|
17
|
+
"enrollment_profile_name": "Example enrollment profile",
|
|
18
|
+
"ica_common_name": "IoT Example ICA",
|
|
19
|
+
"ica_body": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
|
|
20
|
+
"organization": "IoT Example Organization",
|
|
21
|
+
"parent_ca": "IoT Example Root",
|
|
22
|
+
"signature_algorithm": "1.2.840.10045.4.3.2",
|
|
23
|
+
"key_type": "EC prime256v1",
|
|
24
|
+
"can_be_used_for_any_certificate": false,
|
|
25
|
+
"certificate_authentication_type": "certificate_body_and_attributes",
|
|
26
|
+
"usage_limit": 20,
|
|
27
|
+
"start_date": "2022-07-21T00:00:00Z",
|
|
28
|
+
"end_date": "2022-07-31T00:00:00Z",
|
|
29
|
+
"expiry_date": "2049-01-01",
|
|
30
|
+
"status": "ACTIVE",
|
|
31
|
+
"created_at": "2022-07-21T10:09:13Z",
|
|
32
|
+
"force_passcode_for_auth_cert": false
|
|
33
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
"createAuthenticationCATemplate",
|
|
14
|
+
"listAuthenticationCATemplate",
|
|
15
|
+
"updateAuthenticationCATemplate",
|
|
16
|
+
"getAuthenticationCATemplate",
|
|
17
|
+
"disableAuthenticationCATemplate",
|
|
18
|
+
"deleteAuthenticationCATemplate",
|
|
19
|
+
"restoreAuthenticationCATemplate",
|
|
20
|
+
"enableAuthenticationCATemplate",
|
|
21
|
+
"listAssignableAuthenticationCACertificates"
|
|
22
|
+
],
|
|
23
|
+
"external_name": "ph_request_type"
|
|
24
|
+
},
|
|
25
|
+
"accountId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Limits results to authentication CA templates assigned to an account ID that is an exact match for 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 authentication CA templates for the given division.",
|
|
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 authentication CA templates for the given enrollment profile.",
|
|
50
|
+
"parse": false,
|
|
51
|
+
"encode": false,
|
|
52
|
+
"encrypt": {
|
|
53
|
+
"type": "AES",
|
|
54
|
+
"key": ""
|
|
55
|
+
},
|
|
56
|
+
"external_name": "enrollment_profile_id"
|
|
57
|
+
},
|
|
58
|
+
"icaId": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Limits results to authentication CA templates that use the given authentication CA certificate.",
|
|
61
|
+
"parse": false,
|
|
62
|
+
"encode": false,
|
|
63
|
+
"encrypt": {
|
|
64
|
+
"type": "AES",
|
|
65
|
+
"key": ""
|
|
66
|
+
},
|
|
67
|
+
"external_name": "ica_id"
|
|
68
|
+
},
|
|
69
|
+
"useForAllCertificates": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Filter by value of the `can_be_used_for_any_certificate` field.",
|
|
72
|
+
"parse": false,
|
|
73
|
+
"encode": false,
|
|
74
|
+
"encrypt": {
|
|
75
|
+
"type": "AES",
|
|
76
|
+
"key": ""
|
|
77
|
+
},
|
|
78
|
+
"external_name": "use_for_all_certificates"
|
|
79
|
+
},
|
|
80
|
+
"createdAtFrom": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Limits results to certificate profiles 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_at_from"
|
|
90
|
+
},
|
|
91
|
+
"createdAtTo": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"description": "Limits results to certificate profiles 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_at_to"
|
|
101
|
+
},
|
|
102
|
+
"sortBy": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Sorts results by the given property. Case-insensitive. Default `sort_by` property is `created_at`.",
|
|
105
|
+
"parse": false,
|
|
106
|
+
"encode": false,
|
|
107
|
+
"encrypt": {
|
|
108
|
+
"type": "AES",
|
|
109
|
+
"key": ""
|
|
110
|
+
},
|
|
111
|
+
"external_name": "sort_by"
|
|
112
|
+
},
|
|
113
|
+
"sortDirection": {
|
|
114
|
+
"type": "",
|
|
115
|
+
"description": "Sorts results in ascending or descending order by the value of the `sort_by` property. Case-insensitive. Default `sort_direction` value is `DESC`.",
|
|
116
|
+
"parse": false,
|
|
117
|
+
"encode": false,
|
|
118
|
+
"encrypt": {
|
|
119
|
+
"type": "AES",
|
|
120
|
+
"key": ""
|
|
121
|
+
},
|
|
122
|
+
"external_name": "sort_direction"
|
|
123
|
+
},
|
|
124
|
+
"authenticationCaTemplateId": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Authentication CA template ID (UUID).",
|
|
127
|
+
"parse": false,
|
|
128
|
+
"encode": false,
|
|
129
|
+
"encrypt": {
|
|
130
|
+
"type": "AES",
|
|
131
|
+
"key": ""
|
|
132
|
+
},
|
|
133
|
+
"external_name": "authentication_ca_template_id"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"definitions": {}
|
|
137
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "addAuthenticationCertificate",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": "mockdatafiles/addAuthenticationCertificate-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "listAuthenticationCertificates",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": "mockdatafiles/listAuthenticationCertificates-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "getAuthenticationCertificateDetails",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate/{pathv1}?{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": "mockdatafiles/getAuthenticationCertificateDetails-default.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "updateAuthenticationCertificate",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "PUT",
|
|
69
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate/{pathv1}?{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/updateAuthenticationCertificate-default.json"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "disableAuthenticationCertificate",
|
|
87
|
+
"protocol": "REST",
|
|
88
|
+
"method": "PUT",
|
|
89
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate/{pathv1}/disable?{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": "enableAuthenticationCertificate",
|
|
107
|
+
"protocol": "REST",
|
|
108
|
+
"method": "PUT",
|
|
109
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate/{pathv1}/enable?{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": "deleteAuthenticationCertificate",
|
|
127
|
+
"protocol": "REST",
|
|
128
|
+
"method": "PUT",
|
|
129
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate/{pathv1}/delete?{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": "restoreAuthenticationCertificate",
|
|
147
|
+
"protocol": "REST",
|
|
148
|
+
"method": "PUT",
|
|
149
|
+
"entitypath": "{base_path}/{version}/api/v1/authentication-certificate/{pathv1}/undelete?{query}",
|
|
150
|
+
"requestSchema": "schema.json",
|
|
151
|
+
"responseSchema": "schema.json",
|
|
152
|
+
"timeout": 0,
|
|
153
|
+
"sendEmpty": false,
|
|
154
|
+
"requestDatatype": "JSON",
|
|
155
|
+
"responseDatatype": "JSON",
|
|
156
|
+
"headers": {},
|
|
157
|
+
"responseObjects": [
|
|
158
|
+
{
|
|
159
|
+
"type": "default",
|
|
160
|
+
"key": "",
|
|
161
|
+
"mockFile": ""
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
package/entities/AuthenticationCertificates/mockdatafiles/addAuthenticationCertificate-default.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template_id": "<template_id>",
|
|
3
|
+
"id": "<authentication_certificate_id>",
|
|
4
|
+
"name": "Example Name",
|
|
5
|
+
"enrollment_profile": {
|
|
6
|
+
"id": "<enrollment_profile_id>",
|
|
7
|
+
"name": "<enrollment_profile_name>"
|
|
8
|
+
},
|
|
9
|
+
"start_date": "2021-05-20T00:00:00Z",
|
|
10
|
+
"end_date": "2022-05-20T00:00:00Z",
|
|
11
|
+
"usage_limit": "0",
|
|
12
|
+
"registered_values": [
|
|
13
|
+
{
|
|
14
|
+
"certificate_field": "subject.common_name",
|
|
15
|
+
"matcher": "equals",
|
|
16
|
+
"value": "common name",
|
|
17
|
+
"multiple": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"certificate_field": "subject.organization_unit",
|
|
21
|
+
"matcher": "equals",
|
|
22
|
+
"value": [
|
|
23
|
+
"Unit 1",
|
|
24
|
+
"Unit 2"
|
|
25
|
+
],
|
|
26
|
+
"multiple": true
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"number_of_usage": "0",
|
|
30
|
+
"status": "ACTIVE",
|
|
31
|
+
"created_at": "2021-05-13T21:05:43.273689Z",
|
|
32
|
+
"certificate_issuer_common_name": "Issuing CA Name",
|
|
33
|
+
"use_passcode": false,
|
|
34
|
+
"generation_option": "string",
|
|
35
|
+
"passcode": "ExamplePasscode123",
|
|
36
|
+
"passcode_length": 20,
|
|
37
|
+
"certificate": {
|
|
38
|
+
"id": "<certificate_id>",
|
|
39
|
+
"name": "Certificate Name"
|
|
40
|
+
},
|
|
41
|
+
"pem": "<pem>",
|
|
42
|
+
"certificate_expires_on": "2022-04-30T17:38:58Z",
|
|
43
|
+
"certificate_serial_number": "<certificate_serial_number>",
|
|
44
|
+
"certificate_status": "ISSUED",
|
|
45
|
+
"certificate_thumbprint": "<certificate_thumbprint>",
|
|
46
|
+
"certificate_organization": "Example Organization",
|
|
47
|
+
"certificate_organization_units": []
|
|
48
|
+
}
|