SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Dec 15, 2008, 05:40 #1
- Join Date
- Jun 2008
- Location
- Hyderabad
- Posts
- 252
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Finding whether browser certificate is installed or not
Is there any way that I can find out whether browser certificate is installed or not for a domain?
Suppose user requests a page at http://www.example.org/.
Can I find whether a browser certificate is installed for this domain or not using PHP?
-
Dec 16, 2008, 20:18 #2
- Join Date
- Jun 2008
- Posts
- 62
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not sure but you can access the $_SERVER array for a start.
Check for http or https and what port they are on. Then you can redirect them as needed.
-
Dec 16, 2008, 20:42 #3
- Join Date
- Sep 2005
- Location
- Sydney, NSW, Australia
- Posts
- 16,875
- Mentioned
- 25 Post(s)
- Tagged
- 1 Thread(s)
If it is on https then it will only load if there is a valid certificate or the person loading the page specifically allows it without.
If it is on http then there can't be a certificate.Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
-
Dec 26, 2008, 05:21 #4
- Join Date
- Jun 2008
- Location
- Hyderabad
- Posts
- 252
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thank you felgall.
I am using https protocol. For enabling https protocol in my Apache server, I have created the key and cert files using OpenSSL.
So, even if the browser doesn't have the browser certificate installed, the page is getting loaded.
How can I stop browser from loading the Page if it doesn't have the certificate installed. And I am willing to generate separate certificate for each user. So, when I get request from the user, how can I get the certificate details on server side?Last edited by ArunB; Dec 31, 2008 at 00:44.
Bookmarks