From a5a1f572845a49c2f64d195b5c5b1686cba5c181 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Wed, 4 Dec 2024 18:38:14 -0800 Subject: [PATCH] Fix issued ssh cert defaul ttl --- backend/src/ee/services/ssh/ssh-certificate-authority-fns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7491141e4..63ef9e7e2 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)) {