购买SSL证书
功能介绍
购买SSL证书。

- 请求参数“agree_privacy_protection”必须设置为“true”,才能成功提交购买证书申请。
- 当前页面API为历史版本API,未来可能停止维护。请使用购买SSL证书。
请求消息
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
cert_brand | 是 | String | 证书品牌。 如:GLOBALSIGN |
cert_type | 是 | String | 证书类型,取值如下:
|
domain_type | 是 | String | 域名类型,取值如下:
|
effective_time | 是 | Integer | 证书有效期(年),取值如下:
|
domain_numbers | 是 | Integer | 域名数量。
|
order_number | 是 | Integer | 购买的证书数量。取值范围为1~1000。 |
agree_privacy_protection | 是 | Boolean | 是否同意隐私协议。
此处仅能设置为true才能成功购买证书。 |
响应消息
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
order_id | 是 | String | 订单号。 |
cert | 是 | Array of cert objects | 证书列表,详情请参见表1。 |
示例
如下以购买1张品牌为Globalsign,域名类型为多域名,域名数量为5,有效期为1年的OV证书为例。
- 请求样例
{ "cert_brand":"GLOBALSIGN", "cert_type":"OV_SSL_CERT ", "domain_type":"MULTI_DOMAIN", "effective_time": 1, "domain_numbers": 5, "order_number": 1, "agree_privacy_protection":true, } - 响应样例
{ "order_id": "CS1803192259ROA8U" "cert": [{ "cert_id": "scs1481110651012", }] }或
{ "error_code": "SCM.XXXX", "error_msg": "XXXX" }

