forked from TrueCloudLab/certificates
fix ssh validity modifier
This commit is contained in:
parent
1c8f610ca9
commit
3ff410c695
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ func (m *sshCertificateValidityModifier) Modify(cert *ssh.Certificate) error {
|
|||
|
||||
diff := time.Duration(cert.ValidBefore-cert.ValidAfter) * time.Second
|
||||
switch {
|
||||
case diff < max:
|
||||
case diff < min:
|
||||
return errors.Errorf("ssh certificate duration cannot be lower than %s", min)
|
||||
case diff > max:
|
||||
return errors.Errorf("ssh certificate duration cannot be greater than %s", max)
|
||||
|
|
Loading…
Reference in a new issue