pull/148/head
xiaojunnuo 2024-08-25 12:07:47 +08:00
parent 19ddf61127
commit 15846eda85
2 changed files with 3 additions and 2 deletions

View File

@ -226,7 +226,8 @@ export class AcmeService {
/* Create CSR */
const { commonName, altNames } = this.buildCommonNameByDomains(domains);
let privateKey = null;
const privateKeyArr = options.privateKeyType.split("_");
const privateKeyType = options.privateKeyType || "rsa_2048";
const privateKeyArr = privateKeyType.split("_");
const type = privateKeyArr[0];
const size = parseInt(privateKeyArr[1]);
if (type == "ec") {

View File

@ -55,7 +55,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
{ value: "rsa_4096", label: "RSA 4096" },
{ value: "ec_256", label: "EC 256" },
{ value: "ec_384", label: "EC 384" },
{ value: "ec_521", label: "EC 521" },
// { value: "ec_521", label: "EC 521" },
],
},
required: true,