Certificate Validation Management API
The WSO2 Identity Server - Certificate Validation Management API Definition (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
Certificate Revocation Validators
Get all certificate validator configurations
GET /certificate-validation/revocation-validators
List all certificate validator configurations.
Scope(Permission) required: internal_cert_validation_mgt_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | Validators |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
404 | Requested resource is not found. | Error |
500 | Internal server error. | Error |
501 | Not Implemented. | Error |
Get a specific certificate validator configurations
GET /certificate-validation/revocation-validators/{validatorName}
Get certificate validator configuration specified by the name.
Scope(Permission) required: internal_cert_validation_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
validatorName | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Validator details | Validator |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update the certificate validator configurations
PUT /certificate-validation/revocation-validators/{validatorName}
Patch certificate validator specified by the name.
Scope(Permission) required: internal_cert_validation_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
validatorName | path | string | Yes |
Request body (required): application/json
Schema: Validator
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
enable | boolean | Validator is enabled or not | |
priority | integer | Validator priority | |
fullChainValidation | boolean | Full chain validation is enabled or not | |
retryCount | integer | Retry count |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Validator updated successfully | Validator |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Certificate Authority Certificates
Get all ca certificates
GET /certificate-validation/ca
List all ca certificates.
Scope(Permission) required: internal_cert_validation_mgt_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful response | CACertificates |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Add a new ca certificate
POST /certificate-validation/ca
Add a new ca certificate.
Scope(Permission) required: internal_cert_validation_mgt_create
Request body (required): application/json
Schema: CACertificateAddRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
certificate | string | Base64 encoded certificate |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Certificate added successfully | CACertificate |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Get a ca certificate by certificate id
GET /certificate-validation/ca/{certificate-id}
Get ca certificate specified by the certificate id.
Scope(Permission) required: internal_cert_validation_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
certificate-id | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Certificate details | CACertificate |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update a ca certificate by certificate id
PUT /certificate-validation/ca/{certificate-id}
Patch ca certificate specified by the certificate id.
Scope(Permission) required: internal_cert_validation_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
certificate-id | path | string | Yes |
Request body (required): application/json
Schema: CACertificateUpdateRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
certificate | string | Base64 encoded certificate |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Certificate updated successfully | CACertificate |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Delete a ca certificate by id
DEL /certificate-validation/ca/{certificate-id}
Delete ca certificate specified by the certificate id.
Scope(Permission) required: internal_cert_validation_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
certificate-id | path | string | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully Deleted | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | An error code. |
message | string | Yes | An error message. |
description | string | An error description. | |
traceId | string | An error trace identifier. |
Validator
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
enable | boolean | Validator is enabled or not | |
priority | integer | Validator priority | |
fullChainValidation | boolean | Full chain validation is enabled or not | |
retryCount | integer | Retry count |
CACertificate
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
issuerDN | string | Issuer DN | |
crlUrls | array of string | ||
ocspUrls | array of string | ||
id | string | Certificate ID | |
serialNumber | string | Serial Number |
CACertificateAddRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
certificate | string | Base64 encoded certificate |
CACertificateUpdateRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
certificate | string | Base64 encoded certificate |
Was this page helpful?