Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix issued ssh cert defaul ttl

Tuan Danga5a1f572845a
diff --git a/backend/src/ee/services/ssh/ssh-certificate-authority-fns.ts b/backend/src/ee/services/ssh/ssh-certificate-authority-fns.ts
index 7491141e4c..63ef9e7e2c 100644
--- a/backend/src/ee/services/ssh/ssh-certificate-authority-fns.ts
+++ b/backend/src/ee/services/ssh/ssh-certificate-authority-fns.ts
@@ -203,7 +203,7 @@ export const validateSshCertificatePrincipals = (
export const validateSshCertificateTtl = (template: TSshCertificateTemplates, ttl: string | undefined) => {
if (!ttl) {
// use default template ttl
- return ms(template.ttl);
+ return ms(template.ttl) / 1000;
}
if (ms(ttl) > ms(template.maxTTL)) {