Jump to content

SSL Error while accessing API through HTTPS


CreatoR

Recommended Posts

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.

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated