Retrieves the CA certificate information of an origin server.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetOriginCaCertificate |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The site ID. You can call the ListSites operation to obtain the site ID. |
123456789**** |
| Id |
string |
Yes |
The certificate ID. |
babaabcd**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| SiteId |
integer |
The site ID. |
123456789**** |
| SiteName |
string |
The site name. |
example.com |
| Status |
string |
The certificate status. |
OK |
| Certificate |
string |
The certificate content. |
-----BEGIN CERTIFICATE----- |
| Result |
object |
The certificate information. |
|
| Id |
string |
The certificate ID. |
babaabcd**** |
| Name |
string |
The certificate name. |
yourCertName |
| Status |
string |
The certificate status. |
OK |
| Type |
string |
The certificate type. |
upload |
| CommonName |
string |
The common name of the certificate. |
www.example.com |
| NotBefore |
string |
The start time of the certificate validity period. Format: YYYY-MM-DD HH:MM:SS, in the UTC/GMT time zone. |
2023-03-31 02:08:00 |
| NotAfter |
string |
The end time of the certificate validity period. Format: YYYY-MM-DD HH:MM:SS, in the UTC/GMT time zone. |
2024-03-31 02:08:00 |
| Issuer |
string |
The certificate issuer. |
GlobalSign nv-sa |
| SAN |
string |
The Subject Alternative Name (SAN) of the certificate. |
www.example.com,*.example.com |
| SignatureAlgorithm |
string |
The signature algorithm of the certificate. |
SHA256-RSA |
| PubkeyAlgorithm |
string |
The public key algorithm of the certificate. |
RSA |
| CreateTime |
string |
The creation time. Format: YYYY-MM-DD HH:MM:SS, in the UTC/GMT time zone. |
2024-03-05 18:24:04 |
| UpdateTime |
string |
The update time. Format: YYYY-MM-DD HH:MM:SS, in the UTC/GMT time zone. |
2024-03-05 18:24:04 |
| SerialNumber |
string |
The certificate serial number. |
babaded901474b9693acf530e0fb1d** |
| FingerprintSha256 |
string |
The SHA-256 fingerprint of the certificate. |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456a**** |
| RequestId |
string |
The request ID. |
3558df77-8a7a-4060-a900-2d7949403836 |
Examples
Success response
JSON format
{
"SiteId": 0,
"SiteName": "example.com",
"Status": "OK",
"Certificate": "-----BEGIN CERTIFICATE-----",
"Result": {
"Id": "babaabcd****",
"Name": "yourCertName",
"Status": "OK",
"Type": "upload",
"CommonName": "www.example.com ",
"NotBefore": "2023-03-31 02:08:00",
"NotAfter": "2024-03-31 02:08:00",
"Issuer": "GlobalSign nv-sa",
"SAN": "www.example.com,*.example.com",
"SignatureAlgorithm": "SHA256-RSA",
"PubkeyAlgorithm": "RSA",
"CreateTime": "2024-03-05 18:24:04",
"UpdateTime": "2024-03-05 18:24:04",
"SerialNumber": "babaded901474b9693acf530e0fb1d**",
"FingerprintSha256": "1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456a****"
},
"RequestId": "3558df77-8a7a-4060-a900-2d7949403836"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. | Failed to query the website based on the SiteID you specified. Check parameter SiteId and try again. |
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | Required parameter SiteId missing. Specify SiteId and try again. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | Id.MissingParameter | The parameter Id is required. | The required parameter Id is missing. |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | The authentication time parameter you entered is invalid. Check the parameter value and try again. |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | The token you entered is invalid. Please check and enter the correct token and try again. |
| 404 | Certificate.NotFound | The specified certificate does not exist. | The specified certificate does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.