mirror of https://github.com/certd/certd
chore:
parent
19ddf61127
commit
15846eda85
|
@ -226,7 +226,8 @@ export class AcmeService {
|
||||||
/* Create CSR */
|
/* Create CSR */
|
||||||
const { commonName, altNames } = this.buildCommonNameByDomains(domains);
|
const { commonName, altNames } = this.buildCommonNameByDomains(domains);
|
||||||
let privateKey = null;
|
let privateKey = null;
|
||||||
const privateKeyArr = options.privateKeyType.split("_");
|
const privateKeyType = options.privateKeyType || "rsa_2048";
|
||||||
|
const privateKeyArr = privateKeyType.split("_");
|
||||||
const type = privateKeyArr[0];
|
const type = privateKeyArr[0];
|
||||||
const size = parseInt(privateKeyArr[1]);
|
const size = parseInt(privateKeyArr[1]);
|
||||||
if (type == "ec") {
|
if (type == "ec") {
|
||||||
|
|
|
@ -55,7 +55,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
||||||
{ value: "rsa_4096", label: "RSA 4096" },
|
{ value: "rsa_4096", label: "RSA 4096" },
|
||||||
{ value: "ec_256", label: "EC 256" },
|
{ value: "ec_256", label: "EC 256" },
|
||||||
{ value: "ec_384", label: "EC 384" },
|
{ value: "ec_384", label: "EC 384" },
|
||||||
{ value: "ec_521", label: "EC 521" },
|
// { value: "ec_521", label: "EC 521" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
required: true,
|
required: true,
|
||||||
|
|
Loading…
Reference in New Issue