使用此端点列出在您的帐户中可用的产品。
curl -X GET \
https://www.digicert.com/services/v2/product \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/product"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/product"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'GET',
url: 'https://www.digicert.com/services/v2/product',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"products": [
{
"group_name": "ssl_certificate",
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": true
},
{
"group_name": "ssl_certificate",
"name_id": "ssl_multi_domain",
"name": "Multi-Domain SSL",
"type": "ssl_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": true
},
{
"group_name": "ssl_certificate",
"name_id": "ssl_wildcard",
"name": "WildCard",
"type": "ssl_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": true
},
{
"group_name": "ssl_certificate",
"name_id": "ssl_ev_plus",
"name": "EV SSL",
"type": "ssl_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": true
},
{
"group_name": "ssl_certificate",
"name_id": "ssl_ev_multi_domain",
"name": "EV Multi-Domain",
"type": "ssl_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": true
},
{
"group_name": "client_certificate",
"name_id": "client_digital_signature_plus",
"name": "Digital Signature Plus",
"type": "client_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2,
3
],
"signature_hash_types": [],
"csr_required": false
},
{
"group_name": "client_certificate",
"name_id": "client_premium",
"name": "Premium",
"type": "client_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2,
3
],
"signature_hash_types": [],
"csr_required": false
},
{
"group_name": "code_signing_certificate",
"name_id": "code_signing",
"name": "Code Signing",
"type": "code_signing_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2,
3
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha1",
"name": "SHA-1"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": false
},
{
"group_name": "code_signing_certificate",
"name_id": "code_signing_ev",
"name": "EV Code Signing",
"type": "code_signing_certificate",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2,
3
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha1",
"name": "SHA-1"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": false
},
{
"group_name": "document_signing",
"name_id": "document_signing_org_1",
"name": "Document Signing - Organization (2000)",
"type": "document_signing",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2,
3
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": false
},
{
"group_name": "document_signing",
"name_id": "document_signing_org_2",
"name": "Document Signing - Organization (5000)",
"type": "document_signing",
"allowed_container_ids": [
11223,
11224,
11225
],
"allowed_validity_years": [
1,
2,
3
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"csr_required": false
}
]
}
名称 | 类型 | 描述 |
---|---|---|
products | array | 列出所有可用产品。 |
.. group_name | string |
产品所属的组。 请参阅词汇表 - 产品标识符 |
.. name_id | string |
产品标识符。 请参阅词汇表 - 产品标识符 |
.. name | string | 显示产品名称。 |
.. type | string |
产品类型。 请参阅词汇表 - 产品类型 |
.. allowed_container_ids | array of ints | 可以请求指定产品的容器的列表。 |
.. allowed_validity_years | array of ints | 可以为产品请求的允许有效年限的列表。 |
.. signature_hash_types | object | 签名哈希信息的容器。 |
.. .. allowed_hash_types | array | 产品的允许哈希类型的列表。 |
.. .. .. id | string |
哈希标识符。 请参阅词汇表 - 哈希类型 |
.. .. .. name | string | 哈希名称。 |
.. .. default_hash_type_id | string | 用于产品的默认哈希类型。 |
.. allowed_ca_certs | array | 可用于对私有 SSL 证书签名的 CA 证书的列表。 |
.. .. id | string | CA 证书编号。 |
.. .. name | string | CA 证书名称。 |
.. csr_required | bool | 指定在请求产品类型时是否需要 CSR。 |