]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
the default validity for certificates is 60 days, from
authorAlan T. DeKok <aland@freeradius.org>
Wed, 1 Dec 2021 15:40:20 +0000 (10:40 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 1 Dec 2021 19:04:47 +0000 (14:04 -0500)
raddb/certs/server.cnf

src/tests/modules/cipher/valid.unlang

index c8f7aff18e7df4ba471659616e1486bab981d266..8e990169206acf4645d87714f9917678f5d8921a 100644 (file)
@@ -3,9 +3,9 @@ update request {
        &Tmp-Date-1 := "%(cipher_rsa_certificate:notAfter)"
 }
 
-# Check the cert validity period is 365 days
-if (<uint32>"%{expr:%(integer:%{Tmp-Date-1}) - %(integer:%{Tmp-Date-0})}" != <uint32>"%{expr:86400 * 365}") {
+# Check the cert validity period is 60 days, from raddb/certs/server.cnf
+if (<uint32>"%{expr:%(integer:%{Tmp-Date-1}) - %(integer:%{Tmp-Date-0})}" != <uint32>"%{expr:86400 * 60}") {
        test_fail
-} else {
-       test_pass
 }
+
+test_pass