Skip to content

Commit e5a19d4

Browse files
committed
mod_ssl: Accept expired client certs with optional_no_ca mode.
* 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
1 parent a54b377 commit e5a19d4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changes-entries/pr60028.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*) mod_ssl: For "SSLVerifyClient optional_no_ca" mode, accept
2+
expired client certificates. PR 60028
3+
[Naveen Albert <apache2 phreaknet.org>]

modules/ssl/ssl_private.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ typedef enum {
459459
|| (errnum == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN) \
460460
|| (errnum == X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY) \
461461
|| (errnum == X509_V_ERR_CERT_UNTRUSTED) \
462-
|| (errnum == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE))
462+
|| (errnum == X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE) \
463+
|| (errnum == X509_V_ERR_CERT_HAS_EXPIRED))
463464

464465
/**
465466
* CRL checking mask (mode | flags)

0 commit comments

Comments
 (0)