gridphp-tls-ssl-db-connection

Questionsgridphp-tls-ssl-db-connection
magic asked 3 years ago

Hi, I am testing the Library and i was unable to connect to MYSQL DB because the db ssl enable for connection , any idea how to define certification in config.php db connection so i know it works.   Regards, Magic

1 Answers
Abu Ghufran Staff answered 3 years ago

You will need some updates to enable ssl. I’ve not verified these changes but as per docs, this should work.

1. Download https://codeload.github.com/ADOdb/ADOdb/zip/refs/tags/v5.21.4 archive and extract it in lib/inc folder. Remove old ‘adodb’ folder and rename the extracted folder to adodb.

2. You can set certificate details by:

$g = new jqgrid($db_conf);
$g->con->ssl_key    = "key.pem"; // give full path
$g->con->ssl_cert   = "cert.pem"; 
$g->con->ssl_ca     = "cacert.pem";
$g->con->ssl_capath = null; 
$g->con->ssl_cipher = null; 

Let me know the results.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

13 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?