feat: added reading SANs from CSR

This commit is contained in:
Sheen Capadngan
2024-08-20 01:39:40 +08:00
parent bb27d38a12
commit 16519f9486
4 changed files with 25 additions and 7 deletions
@@ -149,9 +149,7 @@ export const registerCertificateEstRouter = async (server: FastifyZodProvider) =
const { rawCertificate } = await server.services.certificateAuthority.signCertFromCa({
isInternal: true,
certificateTemplateId: req.params.certificateTemplateId,
csr: req.body,
altNames: "",
ttl: "1h"
csr: req.body
});
void res.header("Content-Type", "application/pkcs7-mime; smime-type=certs-only");