This commit is contained in:
Fang-Pen Lin
2025-11-11 12:08:52 -08:00
parent d80d3365ba
commit 204bf59b22

View File

@@ -724,6 +724,8 @@ export const pkiAcmeServiceFactory = ({
return { certificateId: result.certificateId };
} else {
const { certificateAuthority } = (await certificateProfileDAL.findByIdWithConfigs(profileId, tx))!;
// 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(
{
caId: certificateAuthority.id,