lnenad Posted January 8, 2010 Share Posted January 8, 2010 It that time in a boy's life to learn new things to keep up with the latest trends. Now i've been doing google researching but i simply don't get it. How do you use SSL, how do i interact with the user using SSL, all i know is when it's https it's secure but what about if the user tries to access the script with http? I've got Xampp for local testing and open_ssl, on their website nothing can be found (it's as old as php ). Any help would be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/187758-ssl/ Share on other sites More sharing options...
backie Posted January 8, 2010 Share Posted January 8, 2010 A php script will work just the same on https or http. If you wish to stop http usage you could try checking $_SERVER['SERVER_PORT'] to see if it is the correct port. So far I have never had to change a script/app to be used on SSL Quote Link to comment https://forums.phpfreaks.com/topic/187758-ssl/#findComment-991286 Share on other sites More sharing options...
lnenad Posted January 9, 2010 Author Share Posted January 9, 2010 Yes but how is it used, how do i use SSL with my scripts, will just by adding httpS (and if the server supports it) all of the inf be encrypted ? Quote Link to comment https://forums.phpfreaks.com/topic/187758-ssl/#findComment-991610 Share on other sites More sharing options...
tomdchi Posted January 9, 2010 Share Posted January 9, 2010 your scripts don't have anything to do with or care about ssl. ssl is done between the browser and server connection. As long as the server has a ssl certificate installed and you use https in the browser then it should be encrypted with whatever scheme that the ssl cert is configured for. In xampp I think it installs a self signed certificate which is ok if its just for your use but since it was not issued by a Certifying Authority (like verisign) then your browser is going to throw an error saying that cert if from an untrusted source (you). That doesn't mean its encryption is not working though. Quote Link to comment https://forums.phpfreaks.com/topic/187758-ssl/#findComment-991613 Share on other sites More sharing options...
lnenad Posted January 9, 2010 Author Share Posted January 9, 2010 That's what i wanted to know, thanks, i was thinking that special code is necessary when using SSL. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/187758-ssl/#findComment-991635 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.