You need to enable JavaScript to run this app.
导航
创建私有证书
最近更新时间:2023.10.31 14:35:40首次发布时间:2023.08.11 19:16:08

API 说明

API 名称:CreateLeafInstance
API 域名:open.volcengineapi.com
API 描述:调用本接口签发一本私有证书。

请求方法

POST

使用限制

节流限制:暂无。

公共请求头参数

在调用该 API 时,您在请求中必须包含公共参数。在这些公共参数中,以下三个请求头(header)参数的取值说明如下:

参数名称
数据类型
是否必选
参数说明
示例
Region
String
服务地区。该参数的取值是 cn-north-1
cn-north-1
ServiceName
String
服务名称。该参数的取值是 pca
pca

请求参数

参数名称
数据类型
是否必选
参数说明
示例
Action
String
API 的名称。该参数的取值是 CreateLeafInstance
CreateLeafInstance
Version
String
API 的版本。该参数的取值是 2023-05-01
2023-05-01

请求正文

参数名称
数据类型
是否必选
参数说明
示例
contact
Object
设置私有证书的联系人信息。
csr_common
Object
设置私有证书的申请信息。
issuer_id
String
上一级CA实例(子CA实例)的ID。
您可以调用 ListSubInstances 接口获取所有子CA实例的ID。
pca_sub_MlRaK****
hash_alg
String
设置私有证书的签名算法。该参数有以下取值:
  • SHA256
  • SHA384
  • SHA512
SHA256
key_alg
String
设置私有证书的密钥算法。该参数有以下取值:
  • RSA
  • ECDSA
  • SM2
RSA
key_param
String
设置私有证书的密钥强度。根据 key_alg 的值,该参数有不同的取值。
  • key_alg 为 RSA 时,该参数的取值有:2048、3072、4096。
  • key_alg 为 ECDSA 时,该参数的取值有:P256、P384、P521。
  • key_alg 为 SM2 时,该参数无需设置。
2048
quantity
Integer
设置私有证书的有效时长。根据 duration_type 的值,该参数有不同的取值范围。
  • duration_type为 year 时,该参数的取值范围为:1~5。
  • duration_type 为 month 时,该参数的取值范围为:1~60。
  • duration_type 为 day 时,该参数的取值范围为:1~1825。
  • duration_type 为 hour 时,该参数的取值范围为:1~43800。
私有证书的有效时长必须小于上一级CA实例(子CA实例)的有效时长。
10
duration_type
String
设置有效时长(quantity)的单位。该参数有以下取值:
  • hour
  • day
  • month
  • year
day
tag
String
为私有证书设置标签。允许使用任意字符。
doc-test-PrivateCert
use_quota
Boolean
是否消耗私有证书额度来抵扣私有证书的配置费用。默认值为 false。如果您将该参数设置为 true,那么本次请求将会消耗一个私有证书额度,而不会从您的账户余额中扣除费用。
您可以调用 GetQuotaDetail 接口查询您拥有的私有证书额度。如需获取私有证书额度,请购买私有证书资源包
true
extensions
Object
设置私有证书的扩展信息。

响应正文

参数名称
数据类型
参数说明
示例
instance_id
String
私有证书实例的ID。
该ID是证书中心为私有证书实例分配的,用于唯一标识私有证书。
pca_leaf_M6gaihuZRcO****
certificate
String
私有证书的内容。
对于国密算法证书(key_alg 为 SM2),该参数表示用于签名的证书。
-----BEGIN CERTIFICATE----- MIID……SI4= -----END CERTIFICATE-----
private_key
String
私有证书的私钥。
对于国密算法证书(key_alg 为 SM2),该参数表示用于签名的证书私钥。
-----BEGIN RSA PRIVATE KEY----- MIIE……1Q== -----END RSA PRIVATE KEY-----
root_certificate
String
对应的根CA证书的内容。
-----BEGIN CERTIFICATE----- MIID……l+o= -----END CERTIFICATE-----
parent_certificate
String
对应的子CA证书的内容。
-----BEGIN CERTIFICATE----- MIID……XWlZ -----END CERTIFICATE-----
chain
String
证书链的内容。
证书链由 PEM 格式的叶子证书、中间根证书和根证书组成。
对于国密算法证书(key_alg 为 SM2),该参数表示用于签名的证书链。
-----BEGIN CERTIFICATE----- MIID……SI4= -----END CERTIFICATE----- ,-----BEGIN CERTIFICATE----- MIID……XWlZ -----END CERTIFICATE----- ,-----BEGIN CERTIFICATE----- MIID……l+o= -----END CERTIFICATE-----
encryption_private_key
String
用于加密的证书私钥。
只有当您创建国密算法证书(key_alg 为 SM2)时,该参数才会返回。
null
encryption_certificate
String
用于加密的证书。
只有当您创建国密算法证书(key_alg 为 SM2)时,该参数才会返回。
null
encryption_chain
String
用于加密的证书链。
只有当您创建国密算法证书(key_alg 为 SM2)时,该参数才会返回。
证书链由 PEM 格式的叶子证书、中间根证书和根证书组成。
null

示例

请求示例

POST https://open.volcengineapi.com/?Action=CreateLeafInstance&Version=2023-05-01&<其他公共请求参数>

{
    "contact": {
        "email": "zhangsan@example.com",
        "name": "张三",
        "phone_number": "131****1111"
    },
    "csr_common": {
        "subject": {
            "common_name": "www.example.com",
            "country": [
                "CN"
            ],
            "locality": [
                "海淀"
            ],
            "organization": [
                "研发部"
            ],
            "organizational_unit": [
                "测试组"
            ],
            "postal_code": [
                "100080"
            ],
            "province": [
                "北京"
            ]
        }
    },
    "extensions": {
        "key_usages": {
            "key_encipherment": true,
            "non_repudiation": true
        }
    },
    "use_quota": true,
    "issuer_id": "pca_sub_MlRaK****",
    "hash_alg": "SHA256",
    "key_alg": "RSA",
    "key_param": "2048",
    "quantity": 10,
    "duration_type": "day",
    "tag": "doc-test-PrivateCert"
}

响应示例

{
    "ResponseMetadata": {
        "RequestId": "2023031419512308644E64F00E4A0CDA2D",
        "Action": "CreateLeafInstance",
        "Version": "2023-05-01",
        "Service": "pca",
        "Region": "cn-north-1"
    },
    "Result": {
        "instance_id": "pca_leaf_M6gaihuZRcO****",
        "private_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEA2zHctzXcS8fWW+5Qs2kejlCMKVVxtuXPmZ4JrJt2Wk7R5Q8s\nfemM9/Hlc7zPYxos28CAROBWB36/dA4UuCTc/EyTqM/xRzue8No1/sPjmdzMbSTk\n6Vf/ocvgiZiaP/lza7yvHf4BrZsSW/hFIM0xnLGibXwDHaNghZYbviqD/UH9wkUa\nd0jGQxrKoA5AcslOFzIOHgvAwI5P/v3mupCwqlpCNLuPIKaAZkAuDViwHCq0Fj8Z\neweBKjtaOyIZZRd2giEGuxHRkxKADqQ9hVMdAj/paMD3QYR45JjJFiZcHMqMEjVg\nLX41dGJvkXVCR0JNhFMfvtEZlYrPtNrw3baCXQIDAQABAoIBABaz/2xqg7rFpAo5\nkNpEVQnghePyGakb/Hioyc+6+nM4Hr1e6PjRq+wyfdWTBNf66hKIycBYjBCSrDnV\nC4hXKRxowhKGFzONl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7n4T2Za5U6FWA5OE0+7zfaEK0h5A\nELHUIUWXffgaY1VhTO/973IdXekpMYPyHhhgQBnenrSvL+Ek2SDi5vufkeKZRis+\nlC4jcKArVoVnBKCvmUNR/I4xRnY8KbY3jz1topuLw5feCfYkXh+dJilrH6vG1FJL\nBbATN9E8KtuxGI8e5nX8kVHS5toptVbgajpLg+sBKb2vygx4CphzJdECAwEAAaMv\nMC0wDAYDVR0TBAUwAwEB/zAMBgNVHQ8EBQMDB/+AMA8GA1UdJQQIMAYGBFUdJQAw\nDQYJKoZIhvcNAQENBQADggEBABcddS1v0PpRcW0vSKuEiomOrdz54VxmsgXIXweE\nhHLh0scTGtqIhA3Z3fVJujE/GwWIANl6VErHE1W0TmycM19UQ766ErIz2f8RCKMh\nvSsjXjoKkujk1xoR+N5w3gxFB+Epa38vGRXU2aTBDFql0yHdCzccKRME9n36x5hV\nUONnsMFIlguQDyyn+pVg8dmEIDIrNRACKZtlsVEMZ6Xeg0Yj1sHvMZM2b0jO1m35\netpnoDIuzDWriI+ZEA4aoL73FVukoZrOfc7XucJRGkv3zKu4aERAKdkwvPKZlKw2\nc+QpjLJ6r5xjeMDPlTAKWvmxn19hmX0MMsKlWgDkKdlYl+o=\n-----END CERTIFICATE-----\n"
    }
}

错误码

如果响应正文的 ResponseMetadata 字段中包含 Error 字段,则表示 API 请求失败。关于更多错误码的信息,参见 错误码说明