Passing CSR

This commit is contained in:
Fang-Pen Lin
2025-11-13 11:50:30 -08:00
parent c183d91257
commit 8895c52031
2 changed files with 35 additions and 26 deletions
@@ -738,6 +738,7 @@ export const pkiAcmeServiceFactory = ({
caId: certificateAuthority!.id,
commonName: certificateRequest.commonName!,
altNames: certificateRequest.subjectAlternativeNames?.map((san) => san.value),
csr: Buffer.from(csr),
// TODO: not 100% sure what are these columns for, but let's put the values for common website SSL certs for now
keyUsages: [CertKeyUsage.DIGITAL_SIGNATURE, CertKeyUsage.KEY_ENCIPHERMENT, CertKeyUsage.KEY_AGREEMENT],
extendedKeyUsages: [CertExtendedKeyUsage.SERVER_AUTH]