Fix for- cURL error 51: SSL: no alternative certificate subject name matches target host name 'websitedemos.net'
|
/ Documentation /Troubleshooting/ Fix for- cURL error 51: SSL: no alternative certificate subject name matches target host name ‘websitedemos.net’

Fix for- cURL error 51: SSL: no alternative certificate subject name matches target host name ‘websitedemos.net’

Facing the cURL error 51: SSL: no alternative certificate subject name matches target host name ‘websitedemos.net’ while importing the Astra Sites?

cURL Error

Here is the fix.

If the SSL library installed on your server is outdated (OpenSSL/0.9.8b) you might come across this error while trying to download templates from our cloud. More details about the issue below:

The Problem

When the template cloud installed your site sends a request to our server, it goes through secure connections. These connections run through a firewall, which keeps our server safe from attacks such as DDoS. To be able to do that, we use a system called Server Name Indication (SNI). Every browser after IE6 supports this, and every major CURL version released after March 2008 supports this.

If your server is still using software older than that, this issue will be obvious.


The Solution

Just ask your hosting provider to update OpenSSL library and you should be OK. The OpenSSL version used should be 1.0 or higher that supports SNI. You may share this article with your host.


Technical Background

To be able to use SNI, you need:

  • A version of CURL that supports it, at least 7.18.1. The CURL 7.18.1 was released on March 30th, 2008.
  • This version of CURL should be compiled against a library that supports SNI, usually, OpenSSL 1.0 or higher as that enables TLS by default.
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

This field is required.

REWIND

YEAR IN REVIEW

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form