perf: add preferred chain option (#519) @ZeroClover

This commit is contained in:
Zero Clover
2025-09-06 00:41:03 +08:00
committed by GitHub
parent bb4d5f1e93
commit 902359f24e
3 changed files with 28 additions and 1 deletions

View File

@@ -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();