diff --git a/www/cats/cats_import.php b/www/cats/cats_import.php index feb92d4..7e56ba0 100644 --- a/www/cats/cats_import.php +++ b/www/cats/cats_import.php @@ -1,6 +1,6 @@ 0 -) $access = TRUE; +$ssl_client_email = (isset($_SERVER['SSL_CLIENT_S_DN_Email']))?$_SERVER['SSL_CLIENT_S_DN_Email']:UNDEFINED; + +// Access only from cats.cacert.org with a client certificate for cats@cacert.org +$access = in_array($remote_addr, $allowed_ip_addresses) && ($https == 'on') && ($ssl_client_email == $expected_client_address); if ($access !== TRUE) { echo 'UNAUTHORIZED ACCESS
'."\r\n";