HTTPS相关接口
所有文档

          内容分发网络 CDN

          HTTPS相关接口

          设置HSTS配置

           public void setDomainHSTS(CdnClient client, String domainName){
                Hsts HSTS = new Hsts().withMaxAge(100).withIncludeSubDomains(true).withPreload(false);
                client.setDomainHSTS(domainName, new SetDomainHSTSRequest().withHSTS(HSTS));
          
              }

          查询HSTS配置

          public void getDomainHSTS(CdnClient client, String domainName) {
              GetDomainHSTSResponse response = client.getDomainHSTS(domainName);
          }
              

          设置OCSP配置

           public void setDomainOCSPSwitch(CdnClient client, String domainName){
                client.setDomainOCSPSwitch(new SetDomainOCSPRequest().withDomain(domainName).withOCSP(true));
           }

          查询OCSP配置

          public void getDomainOCSP(CdnClient client, String domainName) {
                  GetDomainOCSPSwitchResponse response = client.getDomainOCSPSwitch(domainName);
              }
              
          上一篇
          证书关联操作
          下一篇
          缓存管理