证书管理
删除SSL证书,如果查询证书还有关联域名在使用,则无法删除,需要使用【修改域名配置】接口解除域名与证书的关联。
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
certificateId | Integer | 是 | 需要删除的证书id |
参数名称 | 类型 | 描述 |
---|---|---|
code | Integer | 接口响应code,0代表成功。 |
message | String | 接口响应信息,success代表成功,失败则提供失败信息。 |
data | List | 接口响应数据 |
#!/bin/bash username="example_username" apiKey="example_apiKey" date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "https://open.chinanetcenter.com/api/certificate/{certificateId}" \ -X "DELETE" \ -u "$username:$password" \ -H "Date: $date" \ -H "Accept: application/json"
HTTP/1.1 200 OK Date: Sun, 05 May 2019 09:08:53 GMT Content-Type: application/json;charset=utf-8 x-cnc-request-id: 83bbebc7-2c95-47d7 {"code":"0", "message":"success", "data":"" }