cURL error 35: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

cURL error 35: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

September 6, 2026 · Illustrated author avatarBy Stefan Bogdanescu
cURL error 35: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Resolving SSL/TLS Version Errors in Magento Cloud CLI

As an experienced developer, I’ve encountered this issue many times when working with e-commerce platforms like Magento. The error message you’re seeing is often caused by outdated or incorrect cURL and OpenSSL versions on your local machine.

Understanding the Error

The cURL error 35: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version essentially means that there’s a mismatch between the SSL/TLS versions being used by cURL and those supported by Magento Cloud.

Step-by-Step Resolution

1. Check Your Current Versions

Before we proceed with updates, let’s check your current versions to identify the root cause:

curl --version
openssl version

If your OpenSSL version is below 1.0.2, or if cURL reports using a old version of libcurl (check under ‘Protocols’), then you’re likely looking at outdated software.

2. Update cURL

To update the curl library, you’ll need to compile it from source. Download the latest version of cURL from https://curl.se/download/ and follow the installation instructions for your operating system.

Ensure your build process includes libSSL support:

./configure --with-libssl

Then proceed with make and make install.

3. Update OpenSSL

For OpenSSL, you can use a package manager like Homebrew (Mac) or update it manually following the instructions at https://www.openssl.org/source/.

If you’re using Ubuntu:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.4-openssl

4. Reinstall Magento Cloud CLI

After updating both packages, reinstall the Magento Cloud CLI:

composer global require magento-cloud/cli

Best Practices for Avoiding SSL/TLS Errors

  • Always keep your system packages up-to-date to ensure you have the latest security patches.
  • Use a virtual machine or container environment for development to isolate dependencies.
  • Consider using version control systems like Git for managing your project’s configuration.

Remember, the Magento Cloud CLI is designed to work with specific versions of PHP and related libraries. Always check their official compatibility matrix.

Conclusion

By following this guide, you should be able to resolve the SSL/TLS version error in your cURL requests when using the Magento Cloud CLI.

If you’re still experiencing issues after updating both packages, it might be a good idea to reach out to the Magento Community or contact their official support channels for further assistance.

At Laravel Company, we specialize in delivering high-performance e-commerce solutions built on Magento. If you need expert guidance on your project, don’t hesitate to visit our services page and schedule a consultation with our team of certified developers.

Configuration Errors CLI

Our network