SSL 证书自动化 API 开放接口
SSL 证书自动化 cURL 示例
# 以 rid 为 a2c 的证书申请单,Token 为 eyJhbGci... 为例
# 获取最新证书,响应 Content-Type: application/json
curl --request GET "https://zsite.cc/open/ssl/latest/a2c" \
--header "Authorization: Bearer eyJhbGci..."
# 私钥
# 获取最新证书的 PEM 格式私钥保存为 example.com.key 文件
curl --request GET "https://zsite.cc/open/ssl/latest/a2c/key" \
--header "Authorization: Bearer eyJhbGci..." --output "example.com.key"
# 完整证书保存为 example.com.crt文件
curl --request GET "https://zsite.cc/open/ssl/latest/a2c/certificate" \
--header "Authorization: Bearer eyJhbGci..." --output "example.com.crt"
# 证书保存为 example.com.crt 文件
curl --request GET "https://zsite.cc/open/ssl/latest/a2c/certificateServer" \
--header "Authorization: Bearer eyJhbGci..." --output "example.com.crt"
# 证书链保存为 example.com-chain.crt 文件
curl --request GET "https://zsite.cc/open/ssl/latest/a2c/certificateChain" \
--header "Authorization: Bearer eyJhbGci..." --output "example.com-chain.crt"