SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict ArunB's Avatar
    Join Date
    Jun 2008
    Location
    Hyderabad
    Posts
    252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question 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?

  2. #2
    SitePoint Enthusiast
    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.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,784
    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="^$">

  4. #4
    SitePoint Addict ArunB's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •