CreatoR Posted July 16, 2011 Share Posted July 16, 2011 Hello, I was working on API and first time when i tried to connect to my WHMCS api page through php script without SSL connection it worked, But when I tried to Connect through SSL connection it returned error as, Array ( [WHMCSAPI] => Array ( [RESULT] => error [MESSAGE] => Connection Error [CURLERROR] => 35 - error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol ) ) I tried to connect through SSL protocol(HTTPS), and it resulted in this error. Can anyone tell me what is wrong with SSL connection? Regards. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted July 17, 2011 Share Posted July 17, 2011 What does your curl connection code look like? Are you setting CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST? Is your curl compiled with SSL support? 0 Quote Link to comment Share on other sites More sharing options...
CreatoR Posted July 17, 2011 Author Share Posted July 17, 2011 Hi laszlof, Yes the CURL is compiled with SSL & i've set, curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); both CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST to '0' value, i think its false rite? can u tell me where i'm doing wrong? regards, 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.