Fix issued ssh cert defaul ttl

This commit is contained in:
Tuan Dang
2024-12-04 18:38:14 -08:00
parent 8327f6154e
commit a5a1f57284

View File

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