On 05.06.2013 08:49, Arun Khan wrote:
> What is the magic trick to make a PHP based application to initiate a
> TLS/SSL connection to a remote MySQL server?

i know, there are hundreds of websites explaining it - with page-long
code-snippets .... meh this is mostly gruscht - if you do not understand
what happens do not implement it

why giving PHP - a obvious insecure language in the wrong hands - the
right to initiate the db-connection? Maybe a simple, quick and dirty
solution outside php/mysql works for you to solve your problem for now?
- until someone comes up the perfect solution ;)

point your application-config to your localhost:localport and tunnel
this localport to your remote server
ssh -L 3306:localhost:3306 ssh_user@remoteServer

for a more persistent connection just write a script to keep this tunnel
in state

i know lame ;) - but better than messing around with code and odd
scripts and that others wrote and nobody else understand ;)

cu Joerg
-- 
Joerg (kital) Simon
[email protected]
http://fedoraproject.org/wiki/JoergSimon
http://kitall.blogspot.com
Key Fingerprint:
3691 0989 2DCA 58A2 8D1F 2CAC C823 558E 5B5B 5688

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines

Reply via email to