mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix issued ssh cert defaul ttl
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user