ClientCertificates (Individual)


Download a certificate.

GET https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}/content

This operation can be used to download a certificate which matches the given alias.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

alias

required

String

Responses

HTTP Code Description Schema

200

OK.

400

Bad Request. Alias not provided or server is not configured to support mutual SSL authentication.

Error

404

Not Found. Certificate for the Alias not found.

Error

500

Internal Server Error

Error

Delete a certificate.

DELETE https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}

This operation can be used to delete an uploaded certificate.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

alias

required

The alias of the certificate that should be deleted.

String

Responses

HTTP Code Description Schema

200

OK. The Certificate deleted successfully.

400

Bad Request. Alias not found or server is not configured to support mutual SSL authentication.

Error

404

Not Found. | Failed to delete the certificate. Certificate could not found for the given alias

Error

500

Internal Server Error

Error

Get the certificate information.

GET https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}

This operation can be used to get the information about a certificate.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

alias

required

String

Responses

HTTP Code Description Schema

200

OK.

CertificateInfo

400

Bad Request. Alias not found or server is not configured to support mutual SSL authentication.

Error

404

Not Found. Alias not found

Error

500

Internal Server Error

Error

Update a certificate.

PUT https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates/{alias}

This operation can be used to update an uploaded certificate.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

alias

required

Alias for the certificate

String

Form

certificate

optional

The certificate that needs to be uploaded.

File

Form

tier

optional

The tier of the certificate

String

Responses

HTTP Code Description Schema

200

OK. The Certificate updated successfully.

ClientCertMetadata

400

Bad Request. Failure due to not providing alias.

Error

404

Not Found. Updating certificate failed. Alias not found or server is not configured to support mutual SSL authentication.

Error

500

Internal Server Error

Error

Upload a new certificate.

POST https://apis.wso2.com/api/am/publisher/v0.16/clientCertificates

This operation can be used to upload a new certificate for an endpoint.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Form

certificate

required

The certificate that needs to be uploaded.

File

Form

alias

required

Alias for the certificate

String

Form

apiId

required

apiId to which the certificate should be applied.

String

Form

tier

required

apiId to which the certificate should be applied.

String

Responses

HTTP Code Description Schema

200

OK. The Certificate added successfully.

ClientCertMetadata

400

Bad Request. Failures due to existing alias or expired certificate.

Error

500

Internal Server Error Failed to add the Certificate due to an Internal Server Error

Error