Hello,
I have tried the solution proposed by Igor Sysoev :
http://forum.nginx.org/read.php?29,173747
Despite the fact it can be a little tricky with php-fpm, I did it.
After a phase of testing, I applied it on a production server... but some times it doesn't work at all and the website is totally anavailable !
When you set
ssl_verify_client optional;
and do something like that
location ^~ /my_private_directory { ## Allow admins only to view admin page
if ($ssl_client_verify != SUCCESS) {
return 403;
break;
}
fastcgi_param HTTPS $fastcgi_https;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
if ($request_filename ~ .php$) {
expires off; ## Do not cache dynamic content
fastcgi_pass unix:/tmp/php-fpm.sock;
}
}
then with Firefox and Chrome it is always ok, but with safari (for windows) it is not the case. If another certificate is installed on the user machine, then Safari display the certificate dialog to choose a certificate... Despite the fact no valid certificate are available !!!
I have some users with ie6 that have complained this is also the case sometime...
Please allow a per location ssl_verify_client (like apache).
Regards,
Eloril