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

Lordwhizy's avatar

How to Connect to SSL3 Secured Endpoint using a signed SSL certificate from a Laravel App

Hi Guys,

Okay I'm in a situation and totally clueless about what to do.

I am to write apis to interact with a Server, the Server uses SSL3 and I have got a signed ssl certificate from the server providers.

Problem is when I have not been able to successfully curl any resource from the server, curl always freak out with one error or the other concerning the ssl procedure.

The only indication that the certificate is okay and the server works fine is that i can connect using openssl when i run the command below.

 openssl s_client -connect 101.101.101.101:2002 -cert sslcert.pem -key privateKey.pem -ssl3 -msg

However a colleague(Java Programmer) has been able to successfully establish a connection using Java.

How can I create a connection from PHP using Laravel.

Any help will be much appreciated.

Thanks

0 likes
3 replies
bashy's avatar

Yup, turn off SSL v1/2/3 for that. Use TLSv3 if you can.

  • What cURL command are you using?
  • Is it built using a new version of openssl?
curl --version
openssl version
Lordwhizy's avatar

I can leave the ssl version option blank and let the connection negotiate that.

I realy dont know how the curl was built, i installed it via homebrew.

curl 7.43.0 OpenSSL 0.9.8zh 14 Jan 2016

I trying out guzzle, but getting similar errors, How can I change the guzzle handler to use php streams instead of curl.

Thanks for your responses.

Please or to participate in this conversation.