mirror of
https://github.com/certd/certd.git
synced 2026-06-26 13:17:33 +08:00
chore: 优化代码格式
This commit is contained in:
@@ -33,10 +33,7 @@ export class AwsClient {
|
||||
// Split the full PEM chain: first block is the leaf cert, the rest is the intermediate chain
|
||||
const pemBlocks = certInfo.crt.split(/(?<=-----END CERTIFICATE-----)/);
|
||||
const cert = pemBlocks[0].trim();
|
||||
const chain = pemBlocks
|
||||
.slice(1)
|
||||
.join("")
|
||||
.trim();
|
||||
const chain = pemBlocks.slice(1).join("").trim();
|
||||
|
||||
// 构建上传参数
|
||||
const data = await acmClient.send(
|
||||
|
||||
Reference in New Issue
Block a user