Page 1 of 1

Secure areas of a site

Posted: Wed Nov 29, 2006 4:52 am
by hmsg
Hi!

I have a site that in some areas i only give access to same users, the users of my site have certificates so i need to select the users by the Distinguish name of they certificates.

Is there any way of I extract the DN(Distinguish Name) of they private certificates? Because i need that name to make a query to a database.


With the best regards

Hugo Gomes

Posted: Wed Nov 29, 2006 6:11 am
by hmsg
I've discover how can we do that.

So heres the solution.

In PHP we can verify th DN with the Global Variable $_SERVER["SSL_CLIENT_S_DN"]


With the best regards

Hugo Gomes

Posted: Wed Nov 29, 2006 8:23 am
by onion2k
Interesting. Can you expand on that a little? What did you use to make the private certificates?

Posted: Thu Jan 18, 2007 11:20 am
by hmsg
I don't do nothing :) I work in a loboratory that is a CA connected to CERN, but we only do certificates for researchers