Page 1 of 1

[SOLVED] client certification retrieval

Posted: Thu May 26, 2005 7:18 am
by phpMizar
I want to know if there is a way to retrieve the client certificate and to read it by openssl_x509_read(). I know the php stores some values of the client certificate such as domain name and others, but it seems not storing the client certificate entirely.
I read on this forum that an iplanet web server can store the certificate data in the ["CLIENT_CERT"] field, but in Apache2 there's not such a field.

I have PHP 4.3.11 and Apache2 with openSSL 0.9.7c

Posted: Fri May 27, 2005 2:56 am
by phpMizar
I solved the problem myself. I have to modify the SSLOptions line in the apache2 configuration file(often is the ssl.conf file) and set the -exportCertData option.
SSL_CLIENT_CERT is the variable the server transmit to php.