![]() |
Connection to database with mysqli ssl - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Connection to database with mysqli ssl (/showthread.php?tid=79017) |
Connection to database with mysqli ssl - fedeburo - 04-08-2021 Hi there, is there a way to connect to a database using mysqli driver through ssl encryption with null certifcate paths? In apps that dont use CodeIgniter, i could make a mysqli ssl encrypted connection without specifying any certificate path, because the newer versions of mysqli do the search of this files automatically. Wait for your answer, thanks. RE: Connection to database with mysqli ssl - php_rocs - 04-09-2021 @fedeburo, What version of CI are you using? Connecting to a database with ssl encryption is as easy as putting https instead of http in the database configuration file. Also, keep in mind that the database ssl encryption is on the database side not the user side. RE: Connection to database with mysqli ssl - fedeburo - 04-09-2021 (04-09-2021, 07:17 AM)php_rocs Wrote: @fedeburo,I m using CI version 4. There is no https or http in the database config file. The way to put the encryption is adding an array in the "encrypt" Key of the database config file. I have to write the paths to null. Could you make an example of what you mean about http or https in the database config file? Thanks! |