From: Georg Göri Date: Sat, 11 Jan 2014 10:33:42 +0000 (+0100) Subject: Fixed get_ssl_certificate_id X-Git-Tag: 1.12~121^2^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ac617ebc014f12680541f78bc3047931afe3f12c;p=tt-rss.git Fixed get_ssl_certificate_id Fixed in a way that it also retrieves client certificates as they are supplied by Apache --- 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 ""; }