perf: 修复windows下无法执行第二条命令的bug

This commit is contained in:
xiaojunnuo
2024-09-04 18:29:39 +08:00
parent 1480efb43d
commit d5bfcdb6de
5 changed files with 53 additions and 17 deletions

View File

@@ -81,6 +81,7 @@ export class AcmeService {
if (conf.key == null) {
conf.key = await this.createNewKey();
await this.saveAccountConfig(email, conf);
this.logger.info(`创建新的Accountkey:${email}`);
}
let directoryUrl = "";
if (isTest) {
@@ -124,7 +125,7 @@ export class AcmeService {
}
async createNewKey() {
const key = await acme.forge.createPrivateKey();
const key = await acme.crypto.createPrivateKey(2048);
return key.toString();
}