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)) {