From: Alan T. DeKok Date: Wed, 1 Dec 2021 15:40:20 +0000 (-0500) Subject: the default validity for certificates is 60 days, from X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ee5edd6388edb1114e1e9936b040ea00ee1f316;p=thirdparty%2Ffreeradius-server.git the default validity for certificates is 60 days, from raddb/certs/server.cnf --- diff --git a/src/tests/modules/cipher/valid.unlang b/src/tests/modules/cipher/valid.unlang index c8f7aff18e7..8e990169206 100644 --- a/src/tests/modules/cipher/valid.unlang +++ b/src/tests/modules/cipher/valid.unlang @@ -3,9 +3,9 @@ update request { &Tmp-Date-1 := "%(cipher_rsa_certificate:notAfter)" } -# Check the cert validity period is 365 days -if ("%{expr:%(integer:%{Tmp-Date-1}) - %(integer:%{Tmp-Date-0})}" != "%{expr:86400 * 365}") { +# Check the cert validity period is 60 days, from raddb/certs/server.cnf +if ("%{expr:%(integer:%{Tmp-Date-1}) - %(integer:%{Tmp-Date-0})}" != "%{expr:86400 * 60}") { test_fail -} else { - test_pass } + +test_pass