SSL certification provides complete privacy and security against the data infringement. And it will be really annoying that even after having a valid SSL authentication your OpenCart site shows an error. Right? Well, read the blog post to know quick fixes to this issue !!

Through this blog post, we intend to provide you the information about the common OpenCart SSL errors and ways to fix them.

OpenCart SSL Certificate Errors

First and foremost thing, if you are working with cPanel and your SSL certificate has expired and not renewed by AutoSSL automatically and your OpenCart website displays the following error to your visitors.

ssl certificate has expired

In your SSL/TLS Error log on your server WHM panel, you will see the following error report:

ERROR TLS Status: Defective
ERROR Defect: NO_SSL: No SSL certificate is installed.
WARN Local DCV error (example.com): The system queried for a temporary file at “http://example.com/.well-known/pki-validation/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt”, but the web server responded with the following error: 404 (Not Found). A DNS (Domain Name System) or web server misconfiguration may exist.
WARN Local DCV error (www.example.com): The system queried for a temporary file at “http://www.example.com/.well-known/pki-validation/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt”, but the web server responded with the following error: 404 (Not Found). A DNS (Domain Name System) or web server misconfiguration may exist.
WARN Local DCV error (mail.example.com): The system queried for a temporary file at “http://mail.example.com/.well-known/pki-validation/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.txt”, but the web server responded with the following error: 404 (Not Found). A DNS (Domain Name System) or web server misconfiguration may exist.
ERROR Impediment: TOTAL_DCV_FAILURE: Every domain failed DCV.

Fixes for the OpenCart SSL Errors

1.  Go to OpenCart admin panel-> Settings-> Server-> and set “Use SSL” to Yes.

OpenCart SSL Error go to Settings and Edit Store

Set SSL to Yes

OpenCart SSL Error set SSL to yes

2.  Using FTP go to your Home Directory-> Config.php and make sure you have https prefix in second entry i.e. https://example.com/

// HTTP
define('HTTP_SERVER', 'http://example.com/');

// HTTPS
define('HTTPS_SERVER', 'https://example.com/');

Change it as following:

3.  Using FTP go to your Home Directory-> Admin-> Config.php and make sure you have https prefix in both of the second entries

// HTTP
 define('HTTP_SERVER', 'http://example.com/admin/');

define('HTTP_CATALOG', 'http://example.com/');

4.  Next Step:

Login to your domain cPanel and visit SSL/TLS section -> Click Manage SSL Sites under Install and Manage SSL for your site (HTTPS)-> Click Uninstall and remove your existing expired SSL certificate.

And then

Now if you have AutoSSL configured on your server, it will automatically fetch a new free cPanel(Comodo) certificate on its next check. To do it instantly you can go to Manage SSL/TLS on your WHM server panel and go to Manage Users-> Run AutoSSL Check for this specific domain.

And you all done. So, these were quick fixes to your OpenCart SSL issues. Hope you find the information useful.

More Resources

Additional resources: What is AutoSSL?

As you are reading this article means you are running an OpenCart website and if you need a new theme for your site, go for TemplateToaster a versatile OpenCart Theme Builder Software. It’s a complete package to build a fully professional and beautiful OpenCart Themes from Scratch.

Still struggling to fix your OpenCart SSL Certificate error ? Just post details in comments and I will try to help you solve it.