CodeIgniter Forums

Full Version: Connection to database with mysqli ssl
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
@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.
(04-09-2021, 07:17 AM)php_rocs Wrote: [ -> ]@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.
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!