Certificates (Individual)


Download a certificate.

GET https://apis.wso2.com/api/am/publisher/v0.16/certificates/{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. Invalid request or validation error. *

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/certificates/{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. Invalid request or validation error.

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/certificates/{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. Invalid request or validation error.

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/certificates/{alias}

This operation can be used to update an uploaded certificate.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Form

certificate

required

The certificate that needs to be uploaded.

File

Path

alias

required

Alias for the certificate

String

Responses

HTTP Code Description Schema

200

OK. The Certificate updated successfully.

CertMetadata

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. Updating certificate failed. Alias not found

Error

500

Internal Server Error

Error

Upload a new Certificate.

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

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

endpoint

required

Endpoint to which the certificate should be applied.

String

Responses

HTTP Code Description Schema

200

OK. The Certificate added successfully.

CertMetadata

400

Bad Request. Invalid request or validation error. * 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