[SOLVED] client certification retrieval

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpMizar
Forum Newbie
Posts: 2
Joined: Thu May 26, 2005 6:23 am

[SOLVED] client certification retrieval

Post 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
Last edited by phpMizar on Fri May 27, 2005 2:57 am, edited 1 time in total.
phpMizar
Forum Newbie
Posts: 2
Joined: Thu May 26, 2005 6:23 am

Post 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.
Post Reply