From ac617ebc014f12680541f78bc3047931afe3f12c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Georg=20G=C3=B6ri?= Date: Sat, 11 Jan 2014 11:33:42 +0100 Subject: [PATCH] Fixed get_ssl_certificate_id Fixed in a way that it also retrieves client certificates as they are supplied by Apache --- include/functions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/functions.php b/include/functions.php index a64f0978..fce15b53 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 ""; } -- 2.39.2