Fix wrong arg

This commit is contained in:
Fang-Pen Lin
2025-11-13 12:18:17 -08:00
parent c510d841b8
commit 698986080d

View File

@@ -583,11 +583,13 @@ export const AcmeCertificateAuthorityFns = ({
const skLeafObj = crypto.nativeCrypto.KeyObject.from(leafKeys.privateKey);
const skLeaf = skLeafObj.export({ format: "pem", type: "pkcs8" }) as string;
const [, certificateCsr] = await acme.crypto.createCsr({
altNames: subscriber.subjectAlternativeNames,
commonName: subscriber.commonName,
key: skLeaf
});
const [, certificateCsr] = await acme.crypto.createCsr(
{
altNames: subscriber.subjectAlternativeNames,
commonName: subscriber.commonName
},
skLeaf
);
await orderCertificate(
{