Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tomirons's avatar

PHP 7.3 curl SSL Error

I've got a strange issue that Google hasn't been able to help me with. I'm on Catalina 10.15.1 and I've got Laravel Valet installed with PHP 7.3 and I'm running into this issue when trying to use the Bitbucket API.

cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.bitbucket.org:443

I have both curl and openssl installed and linked to the PATH. Is there something I'm missing? I've been trying to get this working for DAYS now and I'm at my wits end.

I've installed MAMP and have been able to use their PHP version and everything works well so I'm thinking that it's a configuration problem?

If anyone has some insight on what might be going on, please help!! :D

0 likes
9 replies
tomirons's avatar

@wraith What do you mean? Im on a Mac with Catalina 10.15.1, Valet, and PHP 7.3.

siangboon's avatar

able to telnet?

telnet api.bitbucket.org 443
tomirons's avatar

@siangboon I can ping, and do quite a bit of things outside of PHP. But I feel like PHP is compiling with the wrong configurations for curl and openssl.

siangboon's avatar

ping and telnet is different thing... ping is just to test whether able to reach the destination whereas telnet is direct access to the port of the service of the destination...

tomirons's avatar

Does this mean telnet is working?

Trying 18.205.93.6...
Connected to api.bitbucket.org.
Escape character is '^]'.
Wraith's avatar

Looks like your openssl is not the same like on BB or they are not support the same cypher version as your on mac

siangboon's avatar

how about running curl command in terminal? what is the result?

tomirons's avatar

@siangboon CURL works just fine in the terminal. I've been able to rebuild PHP from homebrew with this script and it works just fine. I'm thinking it has something to do with Apple's default SSL and stuff.

Please or to participate in this conversation.