mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 00:28:12 +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) => {
|
export const validateSshCertificateTtl = (template: TSshCertificateTemplates, ttl: string | undefined) => {
|
||||||
if (!ttl) {
|
if (!ttl) {
|
||||||
// use default template ttl
|
// use default template ttl
|
||||||
return ms(template.ttl);
|
return ms(template.ttl) / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ms(ttl) > ms(template.maxTTL)) {
|
if (ms(ttl) > ms(template.maxTTL)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user