]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_ssl: Accept expired client certs with optional_no_ca mode.
authorJoe Orton <jorton@apache.org>
Wed, 25 Jun 2025 07:55:26 +0000 (07:55 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 25 Jun 2025 07:55:26 +0000 (07:55 +0000)
* modules/ssl/ssl_private.h (ssl_verify_error_is_optional): Add
  X509_V_ERR_CERT_HAS_EXPIRED to the list of error exceptions
  permitted for "optional_no_ca" mode.

Submitted by: Naveen Albert <apache2 phreaknet.org>
PR: 60028
Github: closes #509

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1926714 13f79535-47bb-0310-9956-ffa450edef68

changes-entries/pr60028.txt [new file with mode: 0644]
modules/ssl/ssl_private.h

diff --git a/changes-entries/pr60028.txt b/changes-entries/pr60028.txt
new file mode 100644 (file)
index 0000000..8d57e50
--- /dev/null
@@ -0,0 +1,3 @@
+  *) mod_ssl: For "SSLVerifyClient optional_no_ca" mode, accept
+     expired client certificates.  PR 60028
+     [Naveen Albert <apache2 phreaknet.org>]
index e3e41b7dff9e7245682c16b51070161713057069..7ebd3b48b342e8802c951c62b44fcd46a3db3c25 100644 (file)
@@ -459,7 +459,8 @@ typedef enum {
     || (errnum == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN) \
     || (errnum == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY) \
     || (errnum == X509_V_ERR_CERT_UNTRUSTED) \
-    || (errnum == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE))
+    || (errnum == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE) \
+    || (errnum == X509_V_ERR_CERT_HAS_EXPIRED))
 
 /**
   * CRL checking mask (mode | flags)