Search code examples
phpmysqlcodeignitersshtunnel

CodeIgniter: Encrypt communication between app and mysql db on different servers?


Can anyone tell me the best way to encrypt data between a CI application and a MySQL db hosted on separate servers. SSH tunnel? If so, has anyone gotten this working using CI? Code examples and/or links are welcome.


Solution

  • MySQL supports SSL natively. See: http://dev.mysql.com/doc/refman/5.1/en/secure-connections.html