v1

package
v0.1.88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CcmClientBuilder

func CcmClientBuilder() *httpclient.HcHttpClientBuilder

func GenReqDefForBatchCreateCaTags added in v0.1.44

func GenReqDefForBatchCreateCaTags() *def.HttpRequestDef

func GenReqDefForBatchCreateCertTags added in v0.1.44

func GenReqDefForBatchCreateCertTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteCaTags added in v0.1.44

func GenReqDefForBatchDeleteCaTags() *def.HttpRequestDef

func GenReqDefForBatchDeleteCertTags added in v0.1.44

func GenReqDefForBatchDeleteCertTags() *def.HttpRequestDef

func GenReqDefForCountCaResourceInstances added in v0.1.44

func GenReqDefForCountCaResourceInstances() *def.HttpRequestDef

func GenReqDefForCountCertResourceInstances added in v0.1.44

func GenReqDefForCountCertResourceInstances() *def.HttpRequestDef

func GenReqDefForCreateCaTag added in v0.1.44

func GenReqDefForCreateCaTag() *def.HttpRequestDef

func GenReqDefForCreateCertTag added in v0.1.44

func GenReqDefForCreateCertTag() *def.HttpRequestDef

func GenReqDefForCreateCertificate

func GenReqDefForCreateCertificate() *def.HttpRequestDef

func GenReqDefForCreateCertificateAuthority

func GenReqDefForCreateCertificateAuthority() *def.HttpRequestDef

func GenReqDefForCreateCertificateAuthorityObsAgency

func GenReqDefForCreateCertificateAuthorityObsAgency() *def.HttpRequestDef

func GenReqDefForCreateCertificateAuthorityOrder added in v0.1.62

func GenReqDefForCreateCertificateAuthorityOrder() *def.HttpRequestDef

func GenReqDefForCreateCertificateByCsr

func GenReqDefForCreateCertificateByCsr() *def.HttpRequestDef

func GenReqDefForDeleteCertificate

func GenReqDefForDeleteCertificate() *def.HttpRequestDef

func GenReqDefForDeleteCertificateAuthority

func GenReqDefForDeleteCertificateAuthority() *def.HttpRequestDef

func GenReqDefForDisableCertificateAuthority

func GenReqDefForDisableCertificateAuthority() *def.HttpRequestDef

func GenReqDefForDisableCertificateAuthorityCrl added in v0.1.23

func GenReqDefForDisableCertificateAuthorityCrl() *def.HttpRequestDef

func GenReqDefForEnableCertificateAuthority

func GenReqDefForEnableCertificateAuthority() *def.HttpRequestDef

func GenReqDefForEnableCertificateAuthorityCrl added in v0.1.23

func GenReqDefForEnableCertificateAuthorityCrl() *def.HttpRequestDef

func GenReqDefForExportCertificate

func GenReqDefForExportCertificate() *def.HttpRequestDef

func GenReqDefForExportCertificateAuthorityCertificate

func GenReqDefForExportCertificateAuthorityCertificate() *def.HttpRequestDef

func GenReqDefForExportCertificateAuthorityCsr

func GenReqDefForExportCertificateAuthorityCsr() *def.HttpRequestDef

func GenReqDefForImportCertificateAuthorityCertificate

func GenReqDefForImportCertificateAuthorityCertificate() *def.HttpRequestDef

func GenReqDefForIssueCertificateAuthorityCertificate

func GenReqDefForIssueCertificateAuthorityCertificate() *def.HttpRequestDef

func GenReqDefForListCaResourceInstances added in v0.1.44

func GenReqDefForListCaResourceInstances() *def.HttpRequestDef

func GenReqDefForListCaTags added in v0.1.44

func GenReqDefForListCaTags() *def.HttpRequestDef

func GenReqDefForListCertResourceInstances added in v0.1.44

func GenReqDefForListCertResourceInstances() *def.HttpRequestDef

func GenReqDefForListCertTags added in v0.1.44

func GenReqDefForListCertTags() *def.HttpRequestDef

func GenReqDefForListCertificate

func GenReqDefForListCertificate() *def.HttpRequestDef

func GenReqDefForListCertificateAuthority

func GenReqDefForListCertificateAuthority() *def.HttpRequestDef

func GenReqDefForListCertificateAuthorityObsBucket

func GenReqDefForListCertificateAuthorityObsBucket() *def.HttpRequestDef

func GenReqDefForListDomainCaTags added in v0.1.44

func GenReqDefForListDomainCaTags() *def.HttpRequestDef

func GenReqDefForListDomainCertTags added in v0.1.44

func GenReqDefForListDomainCertTags() *def.HttpRequestDef

func GenReqDefForParseCertificateSigningRequest

func GenReqDefForParseCertificateSigningRequest() *def.HttpRequestDef

func GenReqDefForRestoreCertificateAuthority

func GenReqDefForRestoreCertificateAuthority() *def.HttpRequestDef

func GenReqDefForRevokeCertificate

func GenReqDefForRevokeCertificate() *def.HttpRequestDef

func GenReqDefForRevokeCertificateAuthority

func GenReqDefForRevokeCertificateAuthority() *def.HttpRequestDef

func GenReqDefForShowCertificate

func GenReqDefForShowCertificate() *def.HttpRequestDef

func GenReqDefForShowCertificateAuthority

func GenReqDefForShowCertificateAuthority() *def.HttpRequestDef

func GenReqDefForShowCertificateAuthorityObsAgency

func GenReqDefForShowCertificateAuthorityObsAgency() *def.HttpRequestDef

func GenReqDefForShowCertificateAuthorityQuota

func GenReqDefForShowCertificateAuthorityQuota() *def.HttpRequestDef

func GenReqDefForShowCertificateQuota

func GenReqDefForShowCertificateQuota() *def.HttpRequestDef

Types

type BatchCreateCaTagsInvoker added in v0.1.44

type BatchCreateCaTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateCaTagsInvoker) Invoke added in v0.1.44

type BatchCreateCertTagsInvoker added in v0.1.44

type BatchCreateCertTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateCertTagsInvoker) Invoke added in v0.1.44

type BatchDeleteCaTagsInvoker added in v0.1.44

type BatchDeleteCaTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteCaTagsInvoker) Invoke added in v0.1.44

type BatchDeleteCertTagsInvoker added in v0.1.44

type BatchDeleteCertTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteCertTagsInvoker) Invoke added in v0.1.44

type CcmClient

type CcmClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewCcmClient

func NewCcmClient(hcClient *httpclient.HcHttpClient) *CcmClient

func (*CcmClient) BatchCreateCaTags added in v0.1.44

func (c *CcmClient) BatchCreateCaTags(request *model.BatchCreateCaTagsRequest) (*model.BatchCreateCaTagsResponse, error)

BatchCreateCaTags 批量创建CA标签

批量创建CA标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) BatchCreateCaTagsInvoker added in v0.1.44

func (c *CcmClient) BatchCreateCaTagsInvoker(request *model.BatchCreateCaTagsRequest) *BatchCreateCaTagsInvoker

BatchCreateCaTagsInvoker 批量创建CA标签

func (*CcmClient) BatchCreateCertTags added in v0.1.44

BatchCreateCertTags 批量创建证书标签

批量创建证书标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) BatchCreateCertTagsInvoker added in v0.1.44

func (c *CcmClient) BatchCreateCertTagsInvoker(request *model.BatchCreateCertTagsRequest) *BatchCreateCertTagsInvoker

BatchCreateCertTagsInvoker 批量创建证书标签

func (*CcmClient) BatchDeleteCaTags added in v0.1.44

func (c *CcmClient) BatchDeleteCaTags(request *model.BatchDeleteCaTagsRequest) (*model.BatchDeleteCaTagsResponse, error)

BatchDeleteCaTags 批量删除CA标签

批量删除CA标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) BatchDeleteCaTagsInvoker added in v0.1.44

func (c *CcmClient) BatchDeleteCaTagsInvoker(request *model.BatchDeleteCaTagsRequest) *BatchDeleteCaTagsInvoker

BatchDeleteCaTagsInvoker 批量删除CA标签

func (*CcmClient) BatchDeleteCertTags added in v0.1.44

BatchDeleteCertTags 批量删除证书标签

批量删除证书标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) BatchDeleteCertTagsInvoker added in v0.1.44

func (c *CcmClient) BatchDeleteCertTagsInvoker(request *model.BatchDeleteCertTagsRequest) *BatchDeleteCertTagsInvoker

BatchDeleteCertTagsInvoker 批量删除证书标签

func (*CcmClient) CountCaResourceInstances added in v0.1.44

CountCaResourceInstances 根据标签查询CA数量

根据标签查询CA数量。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CountCaResourceInstancesInvoker added in v0.1.44

func (c *CcmClient) CountCaResourceInstancesInvoker(request *model.CountCaResourceInstancesRequest) *CountCaResourceInstancesInvoker

CountCaResourceInstancesInvoker 根据标签查询CA数量

func (*CcmClient) CountCertResourceInstances added in v0.1.44

CountCertResourceInstances 根据标签查询证书数量

根据标签查询证书数量。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CountCertResourceInstancesInvoker added in v0.1.44

func (c *CcmClient) CountCertResourceInstancesInvoker(request *model.CountCertResourceInstancesRequest) *CountCertResourceInstancesInvoker

CountCertResourceInstancesInvoker 根据标签查询证书数量

func (*CcmClient) CreateCaTag added in v0.1.44

func (c *CcmClient) CreateCaTag(request *model.CreateCaTagRequest) (*model.CreateCaTagResponse, error)

CreateCaTag 创建CA标签

创建CA标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCaTagInvoker added in v0.1.44

func (c *CcmClient) CreateCaTagInvoker(request *model.CreateCaTagRequest) *CreateCaTagInvoker

CreateCaTagInvoker 创建CA标签

func (*CcmClient) CreateCertTag added in v0.1.44

func (c *CcmClient) CreateCertTag(request *model.CreateCertTagRequest) (*model.CreateCertTagResponse, error)

CreateCertTag 创建证书标签

创建证书标签。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertTagInvoker added in v0.1.44

func (c *CcmClient) CreateCertTagInvoker(request *model.CreateCertTagRequest) *CreateCertTagInvoker

CreateCertTagInvoker 创建证书标签

func (*CcmClient) CreateCertificate

func (c *CcmClient) CreateCertificate(request *model.CreateCertificateRequest) (*model.CreateCertificateResponse, error)

CreateCertificate 申请证书

申请证书。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthority

CreateCertificateAuthority 创建CA

创建CA,分以下三种情况: - 创建根CA,根据参数介绍中,填写必选值; - 创建从属CA,并需要直接激活该证书,根据参数介绍中,填写必选值; - 创建从属CA,不需要直接激活该证书,请求body中只需要缺少此三个参数之一即可:issuer_id、signature_algorithm、validity。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthorityInvoker

func (c *CcmClient) CreateCertificateAuthorityInvoker(request *model.CreateCertificateAuthorityRequest) *CreateCertificateAuthorityInvoker

CreateCertificateAuthorityInvoker 创建CA

func (*CcmClient) CreateCertificateAuthorityObsAgency

CreateCertificateAuthorityObsAgency 创建委托

用户给PCA创建OBS委托授权,用于访问OBS桶,更新吊销列表。 > 用户所使用账号token需要具备安全管理员(secu_admin)权限。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthorityObsAgencyInvoker

func (c *CcmClient) CreateCertificateAuthorityObsAgencyInvoker(request *model.CreateCertificateAuthorityObsAgencyRequest) *CreateCertificateAuthorityObsAgencyInvoker

CreateCertificateAuthorityObsAgencyInvoker 创建委托

func (*CcmClient) CreateCertificateAuthorityOrder added in v0.1.62

CreateCertificateAuthorityOrder 购买CA

购买CA。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateAuthorityOrderInvoker added in v0.1.62

func (c *CcmClient) CreateCertificateAuthorityOrderInvoker(request *model.CreateCertificateAuthorityOrderRequest) *CreateCertificateAuthorityOrderInvoker

CreateCertificateAuthorityOrderInvoker 购买CA

func (*CcmClient) CreateCertificateByCsr

CreateCertificateByCsr 通过CSR签发证书

通过CSR签发证书。功能约束如下: - 1、当前默认参数如下:

  • CA 默认参数:
  • **keyUsage**: digitalSignature, keyCertSign, cRLSign,优先采用CSR中的参数;
  • **SignatureHashAlgorithm**: SHA384;
  • **PathLength**:0 (可自定义)。
  • 私有证书:
  • **keyUsage**: digitalSignature keyAgreement,优先采用CSR中的参数;
  • **SignatureHashAlgorithm**: SHA384;

- 2、当传入的type为**INTERMEDIATE_CA**时,创建出的从属CA证书,有以下限制:

  • 不占用CA配额。在查询CA列表时,不会返回该证书;
  • 只支持通过以下两个接口获取其信息:
  • GET /v1/private-certificate-authorities/{ca_id} 获取证书详情
  • POST /v1/private-certificate-authorities/{ca_id}/export 导出证书
  • 本接口返回的**certificate_id**即代表从属CA的**ca_id**;
  • 无法用于签发证书,密钥在用户侧。

- 3、当type为**ENTITY_CERT**时,创建出的私有证书,有以下特点:

  • 占用私有证书配额。在查询私有证书列表时,会返回该证书;
  • 除了导出时不包含密钥信息(密钥在用户端),其余用法与其它私有证书一致。

> 注:需要使用“\\r\\n”或“\\n”代替换行符,将CSR转换成一串字符,可参考示例请求。注:目前,证书的组织信息、公钥算法以及公钥内容等均来自CSR文件,暂不支持API传入。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) CreateCertificateByCsrInvoker

func (c *CcmClient) CreateCertificateByCsrInvoker(request *model.CreateCertificateByCsrRequest) *CreateCertificateByCsrInvoker

CreateCertificateByCsrInvoker 通过CSR签发证书

func (*CcmClient) CreateCertificateInvoker

func (c *CcmClient) CreateCertificateInvoker(request *model.CreateCertificateRequest) *CreateCertificateInvoker

CreateCertificateInvoker 申请证书

func (*CcmClient) DeleteCertificate

func (c *CcmClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error)

DeleteCertificate 删除证书

删除证书。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DeleteCertificateAuthority

DeleteCertificateAuthority 删除CA

计划删除CA。计划多少天后删除CA证书,可设置7天~30天内删除。 > 只有当证书状态为”待激活“或”已禁用“状态时,才可删除。”待激活“状态下,将会立即删除证书,不支持延迟删除。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DeleteCertificateAuthorityInvoker

func (c *CcmClient) DeleteCertificateAuthorityInvoker(request *model.DeleteCertificateAuthorityRequest) *DeleteCertificateAuthorityInvoker

DeleteCertificateAuthorityInvoker 删除CA

func (*CcmClient) DeleteCertificateInvoker

func (c *CcmClient) DeleteCertificateInvoker(request *model.DeleteCertificateRequest) *DeleteCertificateInvoker

DeleteCertificateInvoker 删除证书

func (*CcmClient) DisableCertificateAuthority

DisableCertificateAuthority 禁用CA

禁用CA。 > 只有当证书处于\"已激活\"或\"已过期\"状态时,可进行禁用操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DisableCertificateAuthorityCrl added in v0.1.23

DisableCertificateAuthorityCrl 禁用CRL

禁用当前CA的CRL。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) DisableCertificateAuthorityCrlInvoker added in v0.1.23

func (c *CcmClient) DisableCertificateAuthorityCrlInvoker(request *model.DisableCertificateAuthorityCrlRequest) *DisableCertificateAuthorityCrlInvoker

DisableCertificateAuthorityCrlInvoker 禁用CRL

func (*CcmClient) DisableCertificateAuthorityInvoker

func (c *CcmClient) DisableCertificateAuthorityInvoker(request *model.DisableCertificateAuthorityRequest) *DisableCertificateAuthorityInvoker

DisableCertificateAuthorityInvoker 禁用CA

func (*CcmClient) EnableCertificateAuthority

EnableCertificateAuthority 启用CA

启用CA。 > 注:只有当证书处于\"已禁用\"状态时,可进行启用操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) EnableCertificateAuthorityCrl added in v0.1.23

EnableCertificateAuthorityCrl 启用CRL

启用当前CA的CRL。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) EnableCertificateAuthorityCrlInvoker added in v0.1.23

func (c *CcmClient) EnableCertificateAuthorityCrlInvoker(request *model.EnableCertificateAuthorityCrlRequest) *EnableCertificateAuthorityCrlInvoker

EnableCertificateAuthorityCrlInvoker 启用CRL

func (*CcmClient) EnableCertificateAuthorityInvoker

func (c *CcmClient) EnableCertificateAuthorityInvoker(request *model.EnableCertificateAuthorityRequest) *EnableCertificateAuthorityInvoker

EnableCertificateAuthorityInvoker 启用CA

func (*CcmClient) ExportCertificate

func (c *CcmClient) ExportCertificate(request *model.ExportCertificateRequest) (*model.ExportCertificateResponse, error)

ExportCertificate 导出证书

导出证书。

  • 国际算法
  • 选择是否压缩时,分以下两种情况:
  • is_compressed为true时,返回文件压缩包,命名为:证书名称_type字段小写字母.zip,如”test_apache.zip“。
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"时,压缩包中包含三个文件:**server.key**(密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**chain.crt**(证书链,内容为PEM格式)、**server.crt**(证书,内容为PEM格式);
  • type = \"**IIS**\"时,压缩包中包含两个文件:**keystorePass.txt**(keystore口令,若导出证书时设置密码,则无此密码文件)、**server.pfx**(PFX证书,证书与证书链包含在同一个文件);
  • type = \"**NGINX**\"时,压缩包中包含两个文件:**server.key**(密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**server.crt**(内容为PEM格式,证书与证书链包含在同一个文件);
  • type = \"**TOMCAT**\"时,压缩包中包含两个文件:**keystorePass.txt**(keystore口令,若导出证书时设置密码,则无此密码文件)、**server.jks**(JKX证书,证书与证书链包含在同一个文件);
  • type = \"**OTHER**\"时,压缩包中包含三个文件:**server.key**(密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**chain.pem**(证书链)、**server.pem**(证书)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**TOMCAT**\"时,压缩包中包含两个文件:**chain.crt**(证书链,内容为PEM格式)、**server.crt**(证书,内容为PEM格式);
  • type = \"**NGINX**\"时,压缩包中包含一个文件:**server.crt**(证书,内容为PEM格式);
  • type = \"**OTHER**\"时,压缩包中包含两个文件:**chain.pem**(证书链,内容为PEM格式)、**cert.pem**(证书,内容为PEM格式)。
  • is_compressed为false时,返回json格式,返回的具体参数如下:
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**NGINX**\"或\"**OTHER**\"时,返回参数如下:
  • **certificate**(证书内容,PEM格式);
  • **certificate_chain**(证书链,PEM格式);
  • **private_key**(证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥);
  • type = \"**IIS**\"或\"**TOMCAT**\"时,暂时未定义。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**NGINX**\"或\"**IIS**\"或\"**TOMCAT**\"或\"**OTHER**\"时,返回参数如下:
  • **certificate**(证书内容,PEM格式);
  • **certificate_chain**(证书链,PEM格式);
  • 国密算法(中国站)
  • 选择是否压缩和是否国密标准时,分以下四种情况:
  • is_compressed为true、is_sm_standard为true时,返回文件压缩包,命名为:证书名称_type字段小写字母.zip,如”test_apache.zip“。
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含六个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.key**(签名证书密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**signCert.pem**(签名证书,内容为PEM格式)、**encSm2EnvelopedKey.key**(加密证书的国密GMT0009标准规范数字信封文件,内容为BASE64编码)、**signedAndEnvelopedData.key**(加密证书的国密GMT0010标准规范数字信封文件,内容为BASE64编码)、**encCert.pem**(加密证书,内容为PEM格式)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含五个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.pem**(签名证书,内容为PEM格式)、**encSm2EnvelopedKey.key**(加密证书的国密GMT0009标准规范数字信封文件,内容为BASE64编码)、**signedAndEnvelopedData.key**(加密证书的国密GMT0010标准规范数字信封文件,内容为BASE64编码)、**encCert.pem**(加密证书,内容为PEM格式)。
  • is_compressed为true、is_sm_standard为false时,返回文件压缩包,命名为:证书名称_type字段小写字母.zip,如”test_apache.zip“。
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含五个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.key**(签名证书密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**signCert.pem**(签名证书,内容为PEM格式)、**encCert.key**(加密证书密钥文件,内容为PEM格式,若导出证书时设置密码,则为加密后的私钥)、**encCert.pem**(加密证书,内容为PEM格式)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,压缩包中包含四个文件:**chain.pem**(证书链,内容为PEM格式)、**signCert.pem**(签名证书,内容为PEM格式)、**encCert.key**(加密证书密钥文件,内容为PEM格式)、**encCert.pem**(加密证书,内容为PEM格式)。
  • is_compressed为false、is_sm_standard为true时,返回json格式,返回的具体参数如下:
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **private_key**(签名证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_sm2_enveloped_key**(加密证书的国密GMT0009标准规范数字信封文件,BASE64编码);
  • **signed_and_enveloped_data**(加密证书的国密GMT0010标准规范数字信封文件,BASE64编码)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_sm2_enveloped_key**(加密证书的国密GMT0009标准规范数字信封文件,BASE64编码);
  • **signed_and_enveloped_data**(加密证书的国密GMT0010标准规范数字信封文件,BASE64编码)。
  • is_compressed为false、is_sm_standard为false时,返回json格式,返回的具体参数如下:
  • 系统生成密钥签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **private_key**(签名证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_private_key**(加密证书私钥,PEM格式,若导出证书时设置密码,则为加密后的私钥)。
  • 导入CSR签发证书
  • type = \"**APACHE**\"或\"**IIS**\"或\"**NGINX**\"或\"**TOMCAT**\"时,暂时未定义;
  • type = \"**OTHER**\"时,返回参数如下:
  • **certificate_chain**(证书链,PEM格式);
  • **certificate**(签名证书内容,PEM格式);
  • **enc_certificate**(加密证书内容,PEM格式);
  • **enc_private_key**(加密证书私钥,PEM格式)。

> 只有当证书状态为“已签发”时,可进行导出操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ExportCertificateAuthorityCertificate

ExportCertificateAuthorityCertificate 导出CA证书

导出CA证书。 > 注:只有当证书处于\"已激活\"或\"已过期\"时,可进行导出操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ExportCertificateAuthorityCertificateInvoker

func (c *CcmClient) ExportCertificateAuthorityCertificateInvoker(request *model.ExportCertificateAuthorityCertificateRequest) *ExportCertificateAuthorityCertificateInvoker

ExportCertificateAuthorityCertificateInvoker 导出CA证书

func (*CcmClient) ExportCertificateAuthorityCsr

ExportCertificateAuthorityCsr 导出CA的证书签名请求(CSR)

导出CA的证书签名请求。 > 只有当CA处于\"待激活\"状态时,可导出证书签名请求。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ExportCertificateAuthorityCsrInvoker

func (c *CcmClient) ExportCertificateAuthorityCsrInvoker(request *model.ExportCertificateAuthorityCsrRequest) *ExportCertificateAuthorityCsrInvoker

ExportCertificateAuthorityCsrInvoker 导出CA的证书签名请求(CSR)

func (*CcmClient) ExportCertificateInvoker

func (c *CcmClient) ExportCertificateInvoker(request *model.ExportCertificateRequest) *ExportCertificateInvoker

ExportCertificateInvoker 导出证书

func (*CcmClient) ImportCertificateAuthorityCertificate

ImportCertificateAuthorityCertificate 导入CA证书

导入CA证书,使用本接口需要满足以下条件:

  • (1)证书为“待激活”状态的从属CA;
  • (2)导入的证书体必须满足以下条件:
  • a、该证书被签发时的证书签名请求必须是从PCA系统中导出;
  • b、其证书链虽然允许不上传,但后期若想要导出完整的证书链,应导入完整的证书链;
  • c、证书体与证书链必须为PEM编码。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ImportCertificateAuthorityCertificateInvoker

func (c *CcmClient) ImportCertificateAuthorityCertificateInvoker(request *model.ImportCertificateAuthorityCertificateRequest) *ImportCertificateAuthorityCertificateInvoker

ImportCertificateAuthorityCertificateInvoker 导入CA证书

func (*CcmClient) IssueCertificateAuthorityCertificate

IssueCertificateAuthorityCertificate 激活CA

激活CA。 > 只有当证书处于\"待激活\"状态时,可进行激活操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) IssueCertificateAuthorityCertificateInvoker

func (c *CcmClient) IssueCertificateAuthorityCertificateInvoker(request *model.IssueCertificateAuthorityCertificateRequest) *IssueCertificateAuthorityCertificateInvoker

IssueCertificateAuthorityCertificateInvoker 激活CA

func (*CcmClient) ListCaResourceInstances added in v0.1.44

ListCaResourceInstances 根据标签查询CA列表

根据标签查询CA列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCaResourceInstancesInvoker added in v0.1.44

func (c *CcmClient) ListCaResourceInstancesInvoker(request *model.ListCaResourceInstancesRequest) *ListCaResourceInstancesInvoker

ListCaResourceInstancesInvoker 根据标签查询CA列表

func (*CcmClient) ListCaTags added in v0.1.44

func (c *CcmClient) ListCaTags(request *model.ListCaTagsRequest) (*model.ListCaTagsResponse, error)

ListCaTags 根据CA查询标签列表

根据CA证书ID查询此CA的标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCaTagsInvoker added in v0.1.44

func (c *CcmClient) ListCaTagsInvoker(request *model.ListCaTagsRequest) *ListCaTagsInvoker

ListCaTagsInvoker 根据CA查询标签列表

func (*CcmClient) ListCertResourceInstances added in v0.1.44

ListCertResourceInstances 根据标签查询证书列表

根据标签查询证书列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertResourceInstancesInvoker added in v0.1.44

func (c *CcmClient) ListCertResourceInstancesInvoker(request *model.ListCertResourceInstancesRequest) *ListCertResourceInstancesInvoker

ListCertResourceInstancesInvoker 根据标签查询证书列表

func (*CcmClient) ListCertTags added in v0.1.44

func (c *CcmClient) ListCertTags(request *model.ListCertTagsRequest) (*model.ListCertTagsResponse, error)

ListCertTags 根据证书查询标签列表

根据证书ID查询此证书的标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertTagsInvoker added in v0.1.44

func (c *CcmClient) ListCertTagsInvoker(request *model.ListCertTagsRequest) *ListCertTagsInvoker

ListCertTagsInvoker 根据证书查询标签列表

func (*CcmClient) ListCertificate

func (c *CcmClient) ListCertificate(request *model.ListCertificateRequest) (*model.ListCertificateResponse, error)

ListCertificate 查询私有证书列表

查询私有证书列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertificateAuthority

ListCertificateAuthority 查询CA列表

查询CA列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertificateAuthorityInvoker

func (c *CcmClient) ListCertificateAuthorityInvoker(request *model.ListCertificateAuthorityRequest) *ListCertificateAuthorityInvoker

ListCertificateAuthorityInvoker 查询CA列表

func (*CcmClient) ListCertificateAuthorityObsBucket

ListCertificateAuthorityObsBucket 查询OBS桶列表

查询OBS桶列表。 > 只有用户创建了委托授权,方可使用此接口。创建委托授权参见本文档:**证书吊销处理>创建委托**。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListCertificateAuthorityObsBucketInvoker

func (c *CcmClient) ListCertificateAuthorityObsBucketInvoker(request *model.ListCertificateAuthorityObsBucketRequest) *ListCertificateAuthorityObsBucketInvoker

ListCertificateAuthorityObsBucketInvoker 查询OBS桶列表

func (*CcmClient) ListCertificateInvoker

func (c *CcmClient) ListCertificateInvoker(request *model.ListCertificateRequest) *ListCertificateInvoker

ListCertificateInvoker 查询私有证书列表

func (*CcmClient) ListDomainCaTags added in v0.1.44

func (c *CcmClient) ListDomainCaTags(request *model.ListDomainCaTagsRequest) (*model.ListDomainCaTagsResponse, error)

ListDomainCaTags 查询所有CA标签列表

查询所有CA标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListDomainCaTagsInvoker added in v0.1.44

func (c *CcmClient) ListDomainCaTagsInvoker(request *model.ListDomainCaTagsRequest) *ListDomainCaTagsInvoker

ListDomainCaTagsInvoker 查询所有CA标签列表

func (*CcmClient) ListDomainCertTags added in v0.1.44

func (c *CcmClient) ListDomainCertTags(request *model.ListDomainCertTagsRequest) (*model.ListDomainCertTagsResponse, error)

ListDomainCertTags 查询所有证书标签列表

查询所有证书标签列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ListDomainCertTagsInvoker added in v0.1.44

func (c *CcmClient) ListDomainCertTagsInvoker(request *model.ListDomainCertTagsRequest) *ListDomainCertTagsInvoker

ListDomainCertTagsInvoker 查询所有证书标签列表

func (*CcmClient) ParseCertificateSigningRequest

ParseCertificateSigningRequest 解析CSR

解析CSR。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ParseCertificateSigningRequestInvoker

func (c *CcmClient) ParseCertificateSigningRequestInvoker(request *model.ParseCertificateSigningRequestRequest) *ParseCertificateSigningRequestInvoker

ParseCertificateSigningRequestInvoker 解析CSR

func (*CcmClient) RestoreCertificateAuthority

RestoreCertificateAuthority 恢复CA

恢复CA,将处于“计划删除”状态的CA证书,重新恢复为“已禁用”状态。 > 注:只有处于“计划删除”状态的CA证书,才可进行恢复操作。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) RestoreCertificateAuthorityInvoker

func (c *CcmClient) RestoreCertificateAuthorityInvoker(request *model.RestoreCertificateAuthorityRequest) *RestoreCertificateAuthorityInvoker

RestoreCertificateAuthorityInvoker 恢复CA

func (*CcmClient) RevokeCertificate

func (c *CcmClient) RevokeCertificate(request *model.RevokeCertificateRequest) (*model.RevokeCertificateResponse, error)

RevokeCertificate 吊销证书

吊销证书。 > 注:当不想填写吊销理由时,请求body体请置为\"**{}**\",否则将会报错。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) RevokeCertificateAuthority

RevokeCertificateAuthority 吊销CA

吊销子CA。 > 注:当不想填写吊销理由时,请求body体请置为\"**{}**\",否则将会报错。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) RevokeCertificateAuthorityInvoker

func (c *CcmClient) RevokeCertificateAuthorityInvoker(request *model.RevokeCertificateAuthorityRequest) *RevokeCertificateAuthorityInvoker

RevokeCertificateAuthorityInvoker 吊销CA

func (*CcmClient) RevokeCertificateInvoker

func (c *CcmClient) RevokeCertificateInvoker(request *model.RevokeCertificateRequest) *RevokeCertificateInvoker

RevokeCertificateInvoker 吊销证书

func (*CcmClient) ShowCertificate

func (c *CcmClient) ShowCertificate(request *model.ShowCertificateRequest) (*model.ShowCertificateResponse, error)

ShowCertificate 查询证书详情

查询证书详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthority

ShowCertificateAuthority 查询CA详情

查询CA详情。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthorityInvoker

func (c *CcmClient) ShowCertificateAuthorityInvoker(request *model.ShowCertificateAuthorityRequest) *ShowCertificateAuthorityInvoker

ShowCertificateAuthorityInvoker 查询CA详情

func (*CcmClient) ShowCertificateAuthorityObsAgency

ShowCertificateAuthorityObsAgency 查看是否具有委托权限

查看是否具有委托权限。 > 用户所使用账号token需要具备安全管理员(secu_admin)权限。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthorityObsAgencyInvoker

func (c *CcmClient) ShowCertificateAuthorityObsAgencyInvoker(request *model.ShowCertificateAuthorityObsAgencyRequest) *ShowCertificateAuthorityObsAgencyInvoker

ShowCertificateAuthorityObsAgencyInvoker 查看是否具有委托权限

func (*CcmClient) ShowCertificateAuthorityQuota

ShowCertificateAuthorityQuota 查询CA配额

查询CA证书配额。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateAuthorityQuotaInvoker

func (c *CcmClient) ShowCertificateAuthorityQuotaInvoker(request *model.ShowCertificateAuthorityQuotaRequest) *ShowCertificateAuthorityQuotaInvoker

ShowCertificateAuthorityQuotaInvoker 查询CA配额

func (*CcmClient) ShowCertificateInvoker

func (c *CcmClient) ShowCertificateInvoker(request *model.ShowCertificateRequest) *ShowCertificateInvoker

ShowCertificateInvoker 查询证书详情

func (*CcmClient) ShowCertificateQuota

ShowCertificateQuota 查询私有证书配额

查询私有证书配额。

Please refer to HUAWEI cloud API Explorer for details.

func (*CcmClient) ShowCertificateQuotaInvoker

func (c *CcmClient) ShowCertificateQuotaInvoker(request *model.ShowCertificateQuotaRequest) *ShowCertificateQuotaInvoker

ShowCertificateQuotaInvoker 查询私有证书配额

type CountCaResourceInstancesInvoker added in v0.1.44

type CountCaResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*CountCaResourceInstancesInvoker) Invoke added in v0.1.44

type CountCertResourceInstancesInvoker added in v0.1.44

type CountCertResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*CountCertResourceInstancesInvoker) Invoke added in v0.1.44

type CreateCaTagInvoker added in v0.1.44

type CreateCaTagInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCaTagInvoker) Invoke added in v0.1.44

type CreateCertTagInvoker added in v0.1.44

type CreateCertTagInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertTagInvoker) Invoke added in v0.1.44

type CreateCertificateAuthorityInvoker

type CreateCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateAuthorityInvoker) Invoke

type CreateCertificateAuthorityObsAgencyInvoker

type CreateCertificateAuthorityObsAgencyInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateAuthorityObsAgencyInvoker) Invoke

type CreateCertificateAuthorityOrderInvoker added in v0.1.62

type CreateCertificateAuthorityOrderInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateAuthorityOrderInvoker) Invoke added in v0.1.62

type CreateCertificateByCsrInvoker

type CreateCertificateByCsrInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateByCsrInvoker) Invoke

type CreateCertificateInvoker

type CreateCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateCertificateInvoker) Invoke

type DeleteCertificateAuthorityInvoker

type DeleteCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteCertificateAuthorityInvoker) Invoke

type DeleteCertificateInvoker

type DeleteCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteCertificateInvoker) Invoke

type DisableCertificateAuthorityCrlInvoker added in v0.1.23

type DisableCertificateAuthorityCrlInvoker struct {
	*invoker.BaseInvoker
}

func (*DisableCertificateAuthorityCrlInvoker) Invoke added in v0.1.23

type DisableCertificateAuthorityInvoker

type DisableCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*DisableCertificateAuthorityInvoker) Invoke

type EnableCertificateAuthorityCrlInvoker added in v0.1.23

type EnableCertificateAuthorityCrlInvoker struct {
	*invoker.BaseInvoker
}

func (*EnableCertificateAuthorityCrlInvoker) Invoke added in v0.1.23

type EnableCertificateAuthorityInvoker

type EnableCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*EnableCertificateAuthorityInvoker) Invoke

type ExportCertificateAuthorityCertificateInvoker

type ExportCertificateAuthorityCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportCertificateAuthorityCertificateInvoker) Invoke

type ExportCertificateAuthorityCsrInvoker

type ExportCertificateAuthorityCsrInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportCertificateAuthorityCsrInvoker) Invoke

type ExportCertificateInvoker

type ExportCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ExportCertificateInvoker) Invoke

type ImportCertificateAuthorityCertificateInvoker

type ImportCertificateAuthorityCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ImportCertificateAuthorityCertificateInvoker) Invoke

type IssueCertificateAuthorityCertificateInvoker

type IssueCertificateAuthorityCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*IssueCertificateAuthorityCertificateInvoker) Invoke

type ListCaResourceInstancesInvoker added in v0.1.44

type ListCaResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCaResourceInstancesInvoker) Invoke added in v0.1.44

type ListCaTagsInvoker added in v0.1.44

type ListCaTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCaTagsInvoker) Invoke added in v0.1.44

type ListCertResourceInstancesInvoker added in v0.1.44

type ListCertResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertResourceInstancesInvoker) Invoke added in v0.1.44

type ListCertTagsInvoker added in v0.1.44

type ListCertTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertTagsInvoker) Invoke added in v0.1.44

type ListCertificateAuthorityInvoker

type ListCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificateAuthorityInvoker) Invoke

type ListCertificateAuthorityObsBucketInvoker

type ListCertificateAuthorityObsBucketInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificateAuthorityObsBucketInvoker) Invoke

type ListCertificateInvoker

type ListCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ListCertificateInvoker) Invoke

type ListDomainCaTagsInvoker added in v0.1.44

type ListDomainCaTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDomainCaTagsInvoker) Invoke added in v0.1.44

type ListDomainCertTagsInvoker added in v0.1.44

type ListDomainCertTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListDomainCertTagsInvoker) Invoke added in v0.1.44

type ParseCertificateSigningRequestInvoker

type ParseCertificateSigningRequestInvoker struct {
	*invoker.BaseInvoker
}

func (*ParseCertificateSigningRequestInvoker) Invoke

type RestoreCertificateAuthorityInvoker

type RestoreCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*RestoreCertificateAuthorityInvoker) Invoke

type RevokeCertificateAuthorityInvoker

type RevokeCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*RevokeCertificateAuthorityInvoker) Invoke

type RevokeCertificateInvoker

type RevokeCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*RevokeCertificateInvoker) Invoke

type ShowCertificateAuthorityInvoker

type ShowCertificateAuthorityInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateAuthorityInvoker) Invoke

type ShowCertificateAuthorityObsAgencyInvoker

type ShowCertificateAuthorityObsAgencyInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateAuthorityObsAgencyInvoker) Invoke

type ShowCertificateAuthorityQuotaInvoker

type ShowCertificateAuthorityQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateAuthorityQuotaInvoker) Invoke

type ShowCertificateInvoker

type ShowCertificateInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateInvoker) Invoke

type ShowCertificateQuotaInvoker

type ShowCertificateQuotaInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowCertificateQuotaInvoker) Invoke

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL