Fix wrong arg

This commit is contained in:
Fang-Pen Lin
2025-11-13 12:18:17 -08:00
parent c510d841b8
commit 698986080d
@@ -583,11 +583,13 @@ export const AcmeCertificateAuthorityFns = ({
const skLeafObj = crypto.nativeCrypto.KeyObject.from(leafKeys.privateKey); const skLeafObj = crypto.nativeCrypto.KeyObject.from(leafKeys.privateKey);
const skLeaf = skLeafObj.export({ format: "pem", type: "pkcs8" }) as string; const skLeaf = skLeafObj.export({ format: "pem", type: "pkcs8" }) as string;
const [, certificateCsr] = await acme.crypto.createCsr({ const [, certificateCsr] = await acme.crypto.createCsr(
altNames: subscriber.subjectAlternativeNames, {
commonName: subscriber.commonName, altNames: subscriber.subjectAlternativeNames,
key: skLeaf commonName: subscriber.commonName
}); },
skLeaf
);
await orderCertificate( await orderCertificate(
{ {