Encrypting MySQL Traffic In Scripts
Posted
by threepoints
on Stack Overflow
See other posts from Stack Overflow
or by threepoints
Published on 2009-11-22T15:11:26Z
Indexed on
2010/06/01
20:03 UTC
Read the original article
Hit count: 152
Hello,
I need to be able to encrypt the MySQL traffic from a web server to a database server. I know how to set MySQL to use SSL based on the server and client settings in my.cnf however, this needs to be done using mysql_connect() in PHP. This may be a 2 part question.
1) Does mysql_connect() use the MySQL client settings that are set in my.cnf?
If not...
I have read that you can use MYSQL_CLIENT_SSL however, where is the SSL data obtained from? Does using MYSQL_CLIENT_SSL in the mysql_connect function automagically encrypt the traffic?
Simply put, what is the best way to do this?
Thanks!
© Stack Overflow or respective owner