mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: add preferred chain option (#519) @ZeroClover
This commit is contained in:
@@ -329,8 +329,9 @@ export class AcmeService {
|
||||
isTest?: boolean;
|
||||
privateKeyType?: string;
|
||||
profile?: string;
|
||||
preferredChain?: string;
|
||||
}): Promise<CertInfo> {
|
||||
const { email, isTest, csrInfo, dnsProvider, domainsVerifyPlan, profile } = options;
|
||||
const { email, isTest, csrInfo, dnsProvider, domainsVerifyPlan, profile, preferredChain } = options;
|
||||
const client: acme.Client = await this.getAcmeClient(email, isTest);
|
||||
|
||||
let domains = options.domains;
|
||||
@@ -404,6 +405,7 @@ export class AcmeService {
|
||||
},
|
||||
signal: this.options.signal,
|
||||
profile,
|
||||
preferredChain,
|
||||
});
|
||||
|
||||
const crtString = crt.toString();
|
||||
|
||||
Reference in New Issue
Block a user