diff options
author | Georg Göri <[email protected]> | 2014-01-11 11:33:42 +0100 |
---|---|---|
committer | Georg Göri <[email protected]> | 2014-01-11 11:33:42 +0100 |
commit | ac617ebc014f12680541f78bc3047931afe3f12c (patch) | |
tree | cac6d4c7de462acc2747936abf0abebe9a82b3be | |
parent | de0d8d1088d8ab3505c9d775ec0dfb8bf1bea43d (diff) |
Fixed get_ssl_certificate_id
Fixed in a way that it also retrieves client certificates as they are supplied by Apache
-rw-r--r-- | include/functions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php index a64f0978a..fce15b535 100644 --- a/include/functions.php +++ b/include/functions.php @@ -692,6 +692,12 @@ $_SERVER["REDIRECT_SSL_CLIENT_V_END"] . $_SERVER["REDIRECT_SSL_CLIENT_S_DN"]); } + if ($_SERVER["SSL_CLIENT_M_SERIAL"]) { + return sha1($_SERVER["SSL_CLIENT_M_SERIAL"] . + $_SERVER["SSL_CLIENT_V_START"] . + $_SERVER["SSL_CLIENT_V_END"] . + $_SERVER["SSL_CLIENT_S_DN"]); + } return ""; } |