You can do this on the client side using javascript to request a known file from a secure (https) source. if the request fails, it means that the client refused to accept your certificate (or other network error), at this point you can display a message to ask the user to install the root certificate with a link to the root certificate.
This must be done from an insecure page. otherwise the user can refuse your certificate and never load the page to start, and therefore your javascript never starts
This cannot be done in PHP because php (server-side) cannot determine if a client browser with a specific root is installed.
I would not do that. get the correct certificate instead.
It seems that you do not understand enough how SSL works in general. I suggest spending some time understanding how SSL works and how certificates are used.
DC
to learn about sending and receiving HTTP responses using javascript, read this page.
http://www.w3schools.com/XML/xml_http.asp
It can be used to send and receive any text data, and not just for xml. This is very easy to implement, but you should be aware of problems with the browser version.
DC
Developerchris
source share