]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "the default validity for certificates is 60 days, from"
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 1 Dec 2021 20:19:04 +0000 (14:19 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 1 Dec 2021 20:19:04 +0000 (14:19 -0600)
This reverts commit 3ee5edd6388edb1114e1e9936b040ea00ee1f316.

src/tests/modules/cipher/valid.unlang

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