How to Configure SSL in OpenCart

Before or after reading this article, I recommend you read this article as well. It deals with basic questions about SSL and eCommerce.  This article will describe how to choose and configure and SSL certificate for Opencart. In truth, this article really should be about configuring an SSL on a particular server management system such as cPanel, Plesk, or WHM because really all you are doing in Opencart is “turning it on” in a sense.

Choosing between Shared SSL & Private SSL

Shared SSL is an ssl which can be used by all the domains hosted on a server. These SSLs are usually installed on hostname of the server, and can be accessed by temporary URL. This can be used by domains for a temporary time.

Private SSL is used by particular domains, and bind to single domain only it is issued especially for single domain by a trusted authority.  This SSL is mainly used by the domains hosting shopping carts and commercial sites. A shared SSL displays as https://server.arvixe.com/~username/. A private SSL would display as https://www.yourdomain.com in the address bar. Again, A private SSL is more professional when conducting e-commerce online because they are specific to a customer’s name address and company listing to ensure a higher level of security. Most Opencart users prefer a dedicated IP address along with a private SSL because they want to offer the best security possible and that doesn’t just mean encryption, it also means PEACE OF MIND. For example: If I was going to spend 10,000 US on an item I would “not” want to see that the SSL is shared. However, that is one example and not everyone is the same.

Installing/Configuring  SSL on Opencart

Purchasing your certificate from Arvixe is very easy, and with free installation all you have to do is purchase a dedicated IP address and Arvixe does the rest!

Once that is completed, simply do the following two things:
1) Open up your store admin and go to System>Settings>Edit then click on the  SERVER TAB and choose Use SSL: (ON)
2) Open of /config.php and find  the following lines:

// HTTPS
define(‘HTTPS_SERVER’, ‘http://domain.com/’);
define(‘HTTPS_IMAGE’, ‘http://domain.com/image/’);

Change them to this (allowing https)

define(‘HTTPS_SERVER’, ‘https://domain.com/’);
define(‘HTTPS_IMAGE’, ‘https://domain.com/image/’);

Now open up admin/config.php and find these lines

// HTTPS
define(‘HTTPS_SERVER’, ‘http://domain.com/admin/’);
define(‘HTTPS_CATALOG’, ‘http://domain.com/’);
define(‘HTTPS_IMAGE’, ‘http://domain.com/image/’);

Change to this:

// HTTPS
define(‘HTTPS_SERVER’, ‘https://domain.com/admin/’);
define(‘HTTPS_CATALOG’, ‘https://domain.com/’);
define(‘HTTPS_IMAGE’, ‘https://domain.com/image/’);

That’s it! SSL has now been enabled!

Looking for quality OpenCart Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , | Posted under OpenCart | RSS 2.0

Author Spotlight

Joe Stenhouse

Joe Stenhouse

I am a web application developer that specializes in PHP, JAVASCRIPT, MYSQL, HTML, and CSS. We manifest exciting potentials within the world wide web through means of innovation.

Leave a Reply

Your email address will not be published. Required fields are marked *


× 4 = 12

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>