证书下单
POST
ssl/create
注意:如果是手动上传csr文本,需要自行记录csr秘钥
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
id
integer
服务器ID
默认值:
3624
Body 参数application/json
productId
string
证书产品编号
year
integer
购买年限
valid
string
验证方式
commonName
string
通用名称
domains
string
附加域名
origin
string | null
CSR来源
autoCsr
string
自动生成CSR
encryption
string
加密算法
keyCurve
string
ECC密钥曲线
keySize
string
加密位数
hashSign
string
签名算法
csrTxt
string | null
CSR文本
contact
object
联系人信息
lastname
string
姓氏
firstname
string
名称
position
string
职位
email
string
邮箱
telephone
string
电话
company
object
公司信息
orgName
string
公司名称
creditCode
string
社会信用代码
country
string
国家码
province
string
省份或州
locality
string
城市
address
string
地址
postalCode
string
邮编
telephone
string
电话
示例
{
"productId": "11",
"year": 1,
"valid": "dns_txt",
"commonName": "domain.com",
"domains": "domain1.com,domain2.com",
"origin": null,
"autoCsr": "1",
"encryption": "rsa",
"keyCurve": "p384",
"keySize": "2048",
"hashSign": "sha256",
"csrTxt": null,
"contact": {
"lastname": "han",
"firstname": "meimei",
"position": "it",
"email": "test@test.com",
"telephone": "1234567890"
},
"company": {
"orgName": "Probill",
"creditCode": "1111111",
"country": "CN",
"province": "FUJIAN",
"locality": "XIAMEN",
"address": "XIAMEN",
"postalCode": "100000",
"telephone": "1234567890"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.prossl.vip/api/ssl/create?id=3624' \
--header 'Content-Type: application/json' \
--data-raw '{
"productId": "11",
"year": 1,
"valid": "dns_txt",
"commonName": "domain.com",
"domains": "domain1.com,domain2.com",
"origin": null,
"autoCsr": "1",
"encryption": "rsa",
"keyCurve": "p384",
"keySize": "2048",
"hashSign": "sha256",
"csrTxt": null,
"contact": {
"lastname": "han",
"firstname": "meimei",
"position": "it",
"email": "test@test.com",
"telephone": "1234567890"
},
"company": {
"orgName": "Probill",
"creditCode": "1111111",
"country": "CN",
"province": "FUJIAN",
"locality": "XIAMEN",
"address": "XIAMEN",
"postalCode": "100000",
"telephone": "1234567890"
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
msg
string
错误或成功信息提示
time
integer
接口执行时间
data
object
响应数据集
sslNo
string
证书编号
cost
string
订单金额
csr
string
CSR
key
string
证书秘钥
unitCurrency
string
货币单位(前缀)
unitMoney
string
货币单位(后缀)
示例
{
"msg": "",
"code": 0,
"time": 1722421258,
"data": {
"sslNo": "202404220916254360",
"csr": "",
"key": "",
"cost": "100.00",
"unitCurrency": "$",
"unitMoney": "USD"
}
}
修改于 2024-08-02 12:14:42