How to Configure SSL in OpenCart
Written by Joe Stenhouse Friday, 1 February 2013
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:
Change them to this (allowing https)
Now open up admin/config.php and find these lines
Change to this: