证书关联操作
所有文档

          内容分发网络 CDN

          证书关联操作

          增加&修改域名证书

          public void setCertificate(CdnClient client, String domainName) {
                  Cert cert = new Cert().withCertName("test-certName")
                          .withCertServerData("-----BEGIN CERTIFICATE----END CERTIFICATE-----")
                          .withCertPrivateData("-----BEGIN RSA PRIVATE KEY----END RSA PRIVATE KEY-----")
                          .withCertLinkData("x").withCertType(1);
                  SetDomainCertRequest request = new SetDomainCertRequest().withHttpsEnable("ON").withCertificate(cert);
                  client.setDomainCert(domainName, request);
              }

          查询域名证书

          public void getCertificate(CdnClient client, String domainName) {
              GetDomainCertResponse response = client.getDomainCert(domainName);
          }

          删除域名证书

          public void delCertificate(CdnClient client, String domainName) {
              DelDomainCertResponse response = client.deleteDomainCert(domainName);
          }
          上一篇
          回源配置接口
          下一篇
          高级设置接口