perf: 支持群晖

This commit is contained in:
xiaojunnuo
2024-09-09 16:01:42 +08:00
parent 18718f6a25
commit 5c270b6b9d
11 changed files with 60 additions and 46 deletions

View File

@@ -69,13 +69,15 @@ export class CertReader {
const tmpDerPath = this.saveToFile("der");
logger.info("本地文件写入成功");
try {
await opts.handle({
return await opts.handle({
reader: this,
tmpCrtPath: tmpCrtPath,
tmpKeyPath: tmpKeyPath,
tmpPfxPath: tmpPfxPath,
tmpDerPath: tmpDerPath,
});
} catch (err) {
throw err;
} finally {
//删除临时文件
logger.info("删除临时文件");