Faz o upload de um certificado de cliente de origem para um site.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
esa:UploadOriginClientCertificate |
create |
*Site
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| SiteId |
integer |
Sim |
O ID do site. Para obter esse ID, chame a API ListSites. |
123456789**** |
| Certificate |
string |
Sim |
O conteúdo do certificado no formato PEM. |
-----BEGIN CERTIFICATE----- |
| PrivateKey |
string |
Sim |
A chave privada do certificado no formato PEM. |
-----BEGIN PRIVATE KEY----- |
| Name |
string |
Não |
O nome do certificado. |
test |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
O objeto de resposta. |
||
| RequestId |
string |
O ID da solicitação. |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Id |
string |
O ID do certificado. |
babaabcd**** |
| Status |
string |
O status do certificado. |
OK |
| CommonName |
string |
O nome comum do certificado. |
www.example.com |
| NotBefore |
string |
O início do período de validade do certificado ( |
2023-12-01T02:13:07Z |
| NotAfter |
string |
O fim do período de validade do certificado ( |
2024-12-01T02:13:07Z |
| Issuer |
string |
O emissor do certificado. |
GlobalSign nv-sa |
| SerialNumber |
string |
O número de série do certificado. |
babaded901474b9693acf530e0fb1daa |
| FingerprintSha256 |
string |
A impressão digital SHA-256 do certificado. |
1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66 |
| SignatureAlgorithm |
string |
O algoritmo de assinatura do certificado. |
SHA256-RSA |
| ValidityDays |
string |
O período de validade do certificado em dias. |
365 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Id": "babaabcd****",
"Status": "OK",
"CommonName": "www.example.com",
"NotBefore": "2023-12-01T02:13:07Z",
"NotAfter": "2024-12-01T02:13:07Z",
"Issuer": "GlobalSign nv-sa",
"SerialNumber": "babaded901474b9693acf530e0fb1daa",
"FingerprintSha256": "1dc5fc9af4eead2570c70d94b416130baeb6d4429b51fd3557379588456aca66",
"SignatureAlgorithm": "SHA256-RSA",
"ValidityDays": "365"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | Certificate.StatusError | The status of the certificate is invalid. | The specified certificate status is invalid. |
| 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 | QuotaCheckFailed.Function | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. | The feature is unavailable in your plan. Upgrade the plan or contact your account manager to request the feature. |
| 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 | CertificateNotMatchPrivateKey | The specified certificate does not match the private key. | The specified certificate and private key do not match. |
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.