ECommerce Insights Blog

Stay on top of it all and get ahead with useful articles, how-tos, tips and tricks on e-commerce.

OpenCart SSL Certificate Installation Tutorial

OpenCart SSL Certificate Installation Tutorial

The main purpose of SSL (Secure Socket Layer) is to keep all the sensitive information that transmits over internet encrypted in such a way that only intended receipt can decipher and understand it. Since information that is sent over internet hops from computer to computer and nodes to nodes so keeping the integrity and security is of utmost importance. Hackers, malicious scripts can sniff vital information like credit card numbers or other information like phone number, email addresses or postal addresses. Once sniffed and stored these hacked numbers are used to cause harm. It’s imperative that when posting such vital information on a website, you should note whether the page you are on, is on SSL or not.

If SSL is setup you will see a green mark at the right corner of the browser address bar stating that the page is secure and you can post the information asked in the form. It will also tell you the domain SSL information if clicked on the green icon. SSL (Secure Sockets Layer) is a cryptographic protocol that poses and additional level of security to your HTTP requests making it almost impossible for hackers to steal information transmitted over internet. It’s called HTTPS aka (HTTP over SSL).

Now, if you own a eCommerce website using OpenCart or any other eCommerce platform. You require your customers to fill up the sensitive information like address, phone, email address and above all credit card information to make a purchase. One thing is pretty clear, if your store’s payment page is non-SSL aka HTTP without SSL protocol there are more than 80% chances your customers won’t fill up the form and furnish their credit card details cause they fear misuse.

It’s vital that pages which request sensitive data are on SSL and the URL should look like HTTPS://

Although, the following steps apply to all merchants running any eCommerce platform but for sanity’s sake i am going to explain how to configure & setup SSL for an OpenCart eCommerce platform. This will boost your customer’s confidence and the hesitation to furnish credit card information vanishes automatically. Setting up SSL for OpenCart platform is easy and can be done with just 3 steps.

1. Purchase SSL certificate from trusted Vendor

We typically buy our SSL certificates from as it’s quite trusted brand and work flawlessly; above all they run various deals which just works!

Buy a SSL certificate from Godaddy or any other SSL provider vendor and install it on the hosting account where OpenCart website is installed and running. Once SSL certificate is installed follow the step number 2.

2. Configure OpenCart SSL Certificate in Admin Panel

OpenCart is an excellent Open Source platform which is feature rich and works flawlessly. Since SSL configuration is one of their primary feature you won’t find any difficulty setting it up. All you have to do is log on to your OpenCart website’s admin panel and navigage to Admin => System => Settings > [Edit] > Server

Look for “Use SSL” option and set it to “YES” and hit “Save” Button. This step will tell OpenCart that you intend to use built in SSL support and OpenCart should properly redirect customers to HTTPS layer for secure pages like Checkout etc.

3. Edit Config files

Since we have already configured OpenCart to use SSL, all we have to do now is tell OpenCart which pages needs to be on SSL (HTTPS) and which pages can simply be kept on HTTP. To do that we have to edit few files in your preferred editor using your preferred FTP client.

Edit config.php file which is located right under “/” root folder and look for the following

define('HTTPS_SERVER', '{website-domain}');

Make sure that {website-domain} starts with https. e.g.

define('HTTPS_SERVER', '');

Finally upload this config.php file back to root folder and ensure that its overwritten the previous config.php file.

Similarly, edit /admin/config.php file and find

define('HTTPS_SERVER', '{website-domain}');
define('HTTPS_CATALOG', '{website-domain}');

Make sure that {website-domain} starts with https. e.g.

define('HTTPS_SERVER', '');

All done, you have successfully setup and configured SSL for OpenCart platform. All you have to do is browse through your store till the end of checkout page and notice the URL bar.


It should look something like the image shown above. If it says the page is on SSL (HTTPS) with a green bar you are good to go.

Please leave us a comment and let us know if you run into any problems installing, configuring and setting up SSL certificate in your OpenCart website.