Ask for Client Certificate
Posted: Wed Dec 02, 2009 10:55 am
Hi guys,
I'm creating a page that needs client certificate.
My PHP page is:
<?php print_r(openssl_x509_parse($_SERVER[SSL_CLIENT_CERT])); ?>
In http.conf file:
<VirtualHost 127.0.0.1:443>
ServerName apache
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"
DirectoryIndex index.php
SSLCertificateFile "C:\Program Files\Apache Group\Apache2\conf\server.crt"
SSLVerifyClient require
SSLVerifyDepth 10
<Directory "C:\Program Files\Apache Group\Apache2\htdocs">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
The PHP function returns a value, but the page doesn't ask me the certificate. I've tried in IE and Firefox.
Anyone knows what i'm missing?
I'm creating a page that needs client certificate.
My PHP page is:
<?php print_r(openssl_x509_parse($_SERVER[SSL_CLIENT_CERT])); ?>
In http.conf file:
<VirtualHost 127.0.0.1:443>
ServerName apache
DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"
DirectoryIndex index.php
SSLCertificateFile "C:\Program Files\Apache Group\Apache2\conf\server.crt"
SSLVerifyClient require
SSLVerifyDepth 10
<Directory "C:\Program Files\Apache Group\Apache2\htdocs">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
The PHP function returns a value, but the page doesn't ask me the certificate. I've tried in IE and Firefox.
Anyone knows what i'm missing?