I am using BOX's Authenticate with JWT (API)
to get access token from the BOX. My script works fine when I host it on the AWS server. But when hosted on my company's on premise server it give me below issue
["errno"]=>
int(35)
["error"]=>
string(59) "Unknown SSL protocol error in connection to api.box.com:80 "
["url"]=>
string(32) "https://api.box.com/oauth2/token"
["content_type"]=>
This I assume is a network or proxy issue. I have set proxy in code and on server also. export http_proxy=jjjj.com/test:80
similarly to the https proxy
.
Still I could not get box access token. I see another error cURL 6 - unable to resolve the host - api.box.com:80
My PHP curl and SSL extension (openSSL) have different version than what I see on terminal.
In PHP info page - curl version is - 7.21.7 where as in the terminal if I do curl --version
it says curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Please help me to know exactly what is the issue here