]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Cert validity period is 60 days now
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 2 Jun 2022 19:29:43 +0000 (15:29 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 2 Jun 2022 19:29:43 +0000 (15:29 -0400)
src/tests/modules/cipher/valid.unlang

index c8f7aff18e7df4ba471659616e1486bab981d266..be7e34071ebfc3e8c5da9a4317e27406d5f8d7b0 100644 (file)
@@ -3,8 +3,8 @@ 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 30 days
+if (<uint32>"%{expr:%(integer:%{Tmp-Date-1}) - %(integer:%{Tmp-Date-0})}" != <uint32>"%{expr:86400 * 60}") {
        test_fail
 } else {
        test_pass