Welcome Guest, Not a member yet? Register   Sign In
Connection to database with mysqli ssl
#1

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.
Reply
#2

(This post was last modified: 04-09-2021, 07:18 AM by php_rocs.)

@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.
Reply
#3

(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!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB