From 76e86ea283ecbe4ec76cdc92b98457d0fef544ac Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Fri, 27 Sep 2024 16:25:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=AD=E9=97=B4?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E5=A4=8D=E5=88=B6=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugins/plugin-host/plugin/copy-to-local/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/certd-server/src/plugins/plugin-host/plugin/copy-to-local/index.ts b/packages/ui/certd-server/src/plugins/plugin-host/plugin/copy-to-local/index.ts index e56cd5ef..345c99d5 100644 --- a/packages/ui/certd-server/src/plugins/plugin-host/plugin/copy-to-local/index.ts +++ b/packages/ui/certd-server/src/plugins/plugin-host/plugin/copy-to-local/index.ts @@ -117,7 +117,7 @@ export class CopyCertToLocalPlugin extends AbstractTaskPlugin { let { crtPath, keyPath, icPath, pfxPath, derPath } = this; const certReader = new CertReader(this.cert); - const handle = async ({ reader, tmpCrtPath, tmpKeyPath, tmpDerPath, tmpPfxPath }) => { + const handle = async ({ reader, tmpCrtPath, tmpKeyPath, tmpDerPath, tmpPfxPath, tmpIcPath }) => { this.logger.info('复制到目标路径'); if (crtPath) { crtPath = crtPath.startsWith('/') ? crtPath : path.join(Constants.dataDir, crtPath); @@ -131,7 +131,7 @@ export class CopyCertToLocalPlugin extends AbstractTaskPlugin { } if (icPath) { icPath = icPath.startsWith('/') ? icPath : path.join(Constants.dataDir, icPath); - this.copyFile(tmpPfxPath, icPath); + this.copyFile(tmpIcPath, icPath); this.hostIcPath = icPath; } if (pfxPath) {