内容分发网络CDN

    证书关联操作

    增加&修改域名证书

    public void setCertificate(){
            Certificate certificate=new Certificate().withName("test")
                    .withCertServerData("-----BEGIN CERTIFICATE----END CERTIFICATE-----")
                    .withCertPrivateData("-----BEGIN RSA PRIVATE KEY----END RSA PRIVATE KEY-----");
            String domain="vd3.bdstatic.com";
            String httpsEnable="OFF";
            SetCertificateResponse response = cdnClient.setCertificate(domain, certificate, httpsEnable);
            System.out.println(response);
        }

    查询域名证书

    public void getCertificate(){
            String domain="vd3.bdstatic.com";
            GetCertificateResponse response = cdnClient.getCertificate(DOMAIN);
            System.out.println(response);
        }

    删除域名证书

    public void delCertificate(){
            String domain="vd3.bdstatic.com";
            DelCertificateResponse delCertificateResponse = cdnClient.delCertificate(domain);
            System.out.println(delCertificateResponse);
        }
    上一篇
    回源配置接口
    下一篇
    高级设置接口