skyracer85 Posted November 24, 2013 Share Posted November 24, 2013 Hi Members, In our company everyone having a ssl certificate in browser, which has details about the employee number. I need to build a php application, it has to be automatically logged in based on the certificate. Can you please guide me how can i read those certificates for automatic login of my php page. Regards, Rajesh Quote Link to comment Share on other sites More sharing options...
kicken Posted November 24, 2013 Share Posted November 24, 2013 The actual reading and parsing of the certificate is something you'd setup via your webserver's SSL options. For example, if you are using apache then you configure SSLVerifyClient and SSLOptions +StdEnvVars When the browser requests a page it will present the certificate to the server which will parse and validate it. It will then export a bunch of different environment variables which you can then access via PHP's $_SERVER array to do any additional validations/logins/etc you need to do. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.