how can i connect to mysql via SSL connection using mysql_connect() in php 4.3.0? i have generated all the certificates necessary and i was able to connect to mysql server via the bin/mysql command line options (below).
bin/mysql -h localhost --ssl-cert=host.crt --ssl-key=host.key -u rootssl -p
however, using
mysql_connect('localhost', 'rootssl', 'xxxxx', false, MYSQL_CLIENT_SSL);
as stated in the documentation, the function returns "SSL connection error". am i missing sth? i know i have to specify ssl-cert and ssl-key but where?
pls help.