I'm doing a website project in PHP, front/back-end from scratch, which will require secure database connections. I've set up my MySQL database with XAMPP, and have gotten an understanding on how to avoid SQL injections. As of now, when a user signs up to my website, I send them an auto-generated email with a link containing a GET request. This GET request contains non-sensitive information to validate the user to the database which I have managed successfully.
Now, I've learned that to increase security, I should use SSL/TLS encryption on all communications between server/client and this is where I'm confused. AFAIK PHP offers mysqli_ssl_set
to establish an encrypted connection to MySQL. And MySQL can be configured to force only SSL/TLS connections (Please alert me if I'm wrong).
How do I make sure that my information sent to the client is SSL encrypted? I'm planning on moving my project to a hosting service. Will they provide the correct certificates needed to encrypt my information to the world wide web? On which subject do I need to further develop my understanding of these concepts?