mirror of https://github.com/certd/certd
parent
ae3daa9bcf
commit
7908ab79da
|
@ -93,20 +93,20 @@ export class DeployToCdnPlugin extends AbstractTaskPlugin {
|
||||||
|
|
||||||
buildParams() {
|
buildParams() {
|
||||||
return {
|
return {
|
||||||
Https: {
|
Domain: this.domainName,
|
||||||
Switch: 'on',
|
Route: 'Https.CertInfo',
|
||||||
CertInfo: {
|
Value: JSON.stringify({
|
||||||
|
update: {
|
||||||
Certificate: this.cert.crt,
|
Certificate: this.cert.crt,
|
||||||
PrivateKey: this.cert.key,
|
PrivateKey: this.cert.key,
|
||||||
},
|
},
|
||||||
},
|
}),
|
||||||
Domain: this.domainName,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRequest(params: any) {
|
async doRequest(params: any) {
|
||||||
const client = await this.getClient();
|
const client = await this.getClient();
|
||||||
const ret = await client.UpdateDomainConfig(params);
|
const ret = await client.ModifyDomainConfig(params);
|
||||||
this.checkRet(ret);
|
this.checkRet(ret);
|
||||||
this.logger.info('设置腾讯云CDN证书成功:', ret.RequestId);
|
this.logger.info('设置腾讯云CDN证书成功:', ret.RequestId);
|
||||||
return ret.RequestId;
|
return ret.RequestId;
|
||||||
|
|
Loading…
Reference in New Issue