Me and my colleague are trying to learn PHP, well he is more advance than me he was able to build a website with very good functionality and it has a log in page for the admin and other people who needs to work on the website. We are wondering how can we place an SSL to encrypt the password while logging in for this website that my colleague built? I do understand that the SSL certificate need to be purchase and the server administrator the people from the hosting need to install it - (to make it clear) this is not my question all about. I'm asking where in the PHP code or script can we place the SSL so that the logging in and out in that website will be encrypted. I have seen other CMS, and other online store website that there is this config.php file in the admin and all I need to do is add the https there. Here is what I saw from them:
By the way the website that my colleague built has some database, from what I heard from him he used a framework.
Is the config.php file all we need to make that SSL function ( of course SSL certificate and other things need to be taken care of). Or there are other things need to be added, and if there are what are those?
Thanks for the reply in advance.