Certificate Assocation Operation
Last Updated:2020-09-17
Add & Modify Domain Name Certificate
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);
}
Query Domain Name Certificates
public void getCertificate(){
String domain="vd3.bdstatic.com";
GetCertificateResponse response = cdnClient.getCertificate(DOMAIN);
System.out.println(response);
}
Delete Domain Name Certificate
public void delCertificate(){
String domain="vd3.bdstatic.com";
DelCertificateResponse delCertificateResponse = cdnClient.delCertificate(domain);
System.out.println(delCertificateResponse);
}