Obtient les informations du certificat CA d'un serveur d'origine.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
esa:GetOriginCaCertificate |
get |
*Site
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| SiteId |
integer |
Oui |
L'identifiant du site. Vous pouvez appeler l'opération ListSites pour obtenir l'identifiant du site. |
123456789**** |
| Id |
string |
Oui |
L'identifiant du certificat. |
babaabcd**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Schéma de la réponse. |
||
| SiteId |
integer |
L'identifiant du site. |
123456789**** |
| SiteName |
string |
Le nom du site. |
example.com |
| Status |
string |
L'état du certificat. |
OK |
| Certificate |
string |
Le contenu du certificat. |
-----BEGIN CERTIFICATE----- |
| Result |
object |
Les informations du certificat. |
|
| Id |
string |
L'identifiant du certificat. |
babaabcd**** |
| Name |
string |
Le nom du certificat. |
yourCertName |
| Status |
string |
L'état du certificat. |
OK |
| Type |
string |
Le type de certificat. |
upload |
| CommonName |
string |
Le nom commun du certificat. |
www.example.com |
| NotBefore |
string |
L'heure de début de la période de validité du certificat. Format : AAAA-MM-JJ HH:MM:SS, dans le fuseau horaire UTC/GMT. |
2023-03-31 02:08:00 |
| NotAfter |
string |
L'heure de fin de la période de validité du certificat. Format : AAAA-MM-JJ HH:MM:SS, dans le fuseau horaire UTC/GMT. |
2024-03-31 02:08:00 |
| Issuer |
string |
L'émetteur du certificat. |
GlobalSign nv-sa |
| SAN |
string |
Le nom alternatif du sujet (SAN) du certificat. |
www.example.com,*.example.com |
| SignatureAlgorithm |
string |
L'algorithme de signature du certificat. |
SHA256-RSA |
| PubkeyAlgorithm |
string |
L'algorithme de clé publique du certificat. |
RSA |
| CreateTime |
string |
L'heure de création. Format : AAAA-MM-JJ HH:MM:SS, dans le fuseau horaire UTC/GMT. |
2024-03-05 18:24:04 |
| UpdateTime |
string |
L'heure de mise à jour. Format : AAAA-MM-JJ HH:MM:SS, dans le fuseau horaire UTC/GMT. |
2024-03-05 18:24:04 |
| SerialNumber |
string |
Le numéro de série du certificat. |
babaded901474b9693acf530e0fb1d** |
| FingerprintSha256 |
string |
L'empreinte SHA-256 du certificat. |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456a**** |
| RequestId |
string |
L'identifiant de la requête. |
3558df77-8a7a-4060-a900-2d7949403836 |
Exemples
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"
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
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. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.