Fixed get_ssl_certificate_id

Fixed in a way that it also retrieves client certificates as they are supplied by Apache
This commit is contained in:
Georg Göri 2014-01-11 11:33:42 +01:00
parent de0d8d1088
commit ac617ebc01
1 changed files with 6 additions and 0 deletions

View File

@ -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 "";
}