接口功能介绍
导入pkcs12格式证书
接口约束
请保证账户余额大于0
URI
POST /manageCertificate/importCertifiicateByPKCS12
路径参数
无
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
hmac | 是 | String | kms鉴权值 | B1uAGreROOnfuQkNp9I5bE4aXsGwBcL5daW3W0nL0Mw= | |
requestDate | 是 | String | 时间戳 | Wed, 29 Aug 2023 17:05:01 CST | |
accessKey | 是 | String | ctapi鉴权ak | ae2cc5cc5e8211ea978a186590d96509 | |
userId | 是 | String | 用户id | 562b89493b1a40e1b97ea05e50dd8170 | |
regionId | 是 | Integer | 资源池id | fecnjniakfkn2314ndekqldedcsadfg |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
passPhrase | 是 | String | 导入证书密码 | 12345 | |
pkcs12Blob | 是 | String | pkcs12格式证书 | MIIKCQIBAzCCCc8GCSqGSIb3DQEHAaCCCcAEggm8MIIJuDCCBG8GCSqGSIb3DQEHBqCCBGAwggRcAgEAMIIEVQYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIA5ZZNcJVpBYCAggAgIIEKMpBWtpSNLTskOL8WTgv8Cs2DV7vDKD1 | |
epId | 否 | String | 企业项目id | default |
响应参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
code | 是 | String | 返回码 取值范围:200 成功 | 200 | |
errorCode | 是 | String | 错误码 | KMS.0514 | |
msg | 是 | String | 调用结果信息 | 导入证书成功 | |
data | 是 | Object | 接口返回结果 | null |
请求示例
请求头header
{
"hmac": "B1uAGreROOnfuQkNp9I5bE4aXsGwBcL5daW3W0nL0Mw=",
"requestDate": "Wed, 29 Aug 2023 17:05:01 CST",
"accessKey": "ae2cc5cc5e8211ea978a186590d96509",
"userId":"562b89493b1a40e1b97ea05e50dd8170",
"regionId":"fecnjniakfkn2314ndekqldedcsadfg"
}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XTpOfxeW5gHc41Rii3y9GmfAMvV29Tv/T+AHqermHZLXI5sDGlEjpsQjiwluUquyhRG5o7dJVVhtLVLqBi2SJMGkXnzn12dLXifCqkCptwxJTAjBgkqhkiG9w0BCRUxFgQUqpzfhIvKqg+LflxEYxnjGIAHERgwMTAhMAkGBSsOAwIaBQAEFKf/EmEp8Zm0/rm8/AeqkNcDqd5kBAioyoCoXrKIlQICCAA=",
"epId":""
}
响应示例
{
"code": "200",
"errorCode": null,
"msg": "导入证书成功",
"data": {
"certificateId":"4882c278-9b68-4818-993d-b01ab7d5995f",
"requestId":"a857cc58-ab6f-40ac-b9e7-fa1781209a76"
}
}
状态码
状态码 | 描述 |
---|---|
200 | 表示请求成功。 |
错误码
请参考 错误码说明。