This commit is contained in:
Fang-Pen Lin
2025-11-13 09:22:04 -08:00
parent 7d97f3263b
commit 4f17e23a95
2 changed files with 21 additions and 0 deletions
@@ -729,6 +729,8 @@ export const pkiAcmeServiceFactory = ({
return { certificateId: result.certificateId };
} else {
const { certificateAuthority } = (await certificateProfileDAL.findByIdWithConfigs(profileId, tx))!;
// TODO: for internal CA, we rely on the internal certificate authority service to check CSR against the template
// we should check the CSR against the template here
// TODO: this is pretty slow, and we are holding the transaction open for a long time,
// we should queue the certificate issuance to a background job instead
const cert = await orderCertificate(