Click here to Skip to main content
15,861,168 members
Articles / Security / Encryption
Tip/Trick

How to Install SSL Certificate in OpenCart?

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
25 Jun 2013CPOL2 min read 40.5K   4   4
Installation guideline to applying SSL certificate in OpenCart

Introduction

OpenCart is an exclusive open source shopping cart system. It is a safe e-commerce solution for e-commerce stores, which furnishes you to establish your own e-commerce business cost-effectively. It can be utilized on several web servers with PHP and MySQL. OpenCart is free software, specified in the GNU General Public License released in 2009. OpenCart carries an order management, in-built numerous payment entrances, lifetime free support, and free software updates. At OpenCart, customers do not need to sign up. They can access OpenCart by simply entering the minimal details for order process. It is an easy to use, elegant, and search engine friendly open source with an attractive interface. To start OpenCart you just have to install it, choose the template, add products and your online business is set up.

Current Scenario

At the present time, hackers are targeting e-commerce frequently therefore, it is necessary to have a sturdy security for any shopping cart system where customers are indulging in online transactions using debit or credit card. Such sensitive information should be maintained securely over the web.
  • Note: It is in the interest of users that they should have installed SSL certificate on their browser. If a user does not have installed SSL on his website, this configuration will show issues while accessing Opencart dashboard and login and checkout page of online store.

In this tip, we will discuss about how to enable SSL security in OpenCart that is defined in three steps like setting in OpenCart Dashboard, config.php file, and config.php in admin folder.

Enable SSL in the OpenCart Dashboard

  • You have to Log into Dashboard of OpenCart.
  • Go to System and click on Settings.
  • Click on the Server tab.
  • Check box the radio button for SSL.

Enable SSL in the OpenCart Directory config.php File

  • Open control panel and log into it, then go to File Manager.
  • Navigate to OpenCart installation directory.
  • Browse “Admin” folder.
  • Open the configuration file (config.php) and look for the below lines appeared as HTTPS:
    PHP
    define('HTTPS_SERVER', 'http://opencart.mydomain.com/');
    define('HTTPS_IMAGE', 'http://opencart.mydomain.com/image/');
  • Edit the HTTPS settings in the file for SSL URL path. Just add- “S” to HTTP:// to turn it HTTPS:// and click on Save changes.
    PHP
    define('HTTPS_SERVER', 'https://opencart.mydomain.com/');
    define('HTTPS_IMAGE','https://opencart.mydomain.com/image/');

Enable SSL in the OpenCart Admin Folder config.php File

  • Browse Admin folder and open the configuration file.
  • Look for the below lines appeared as HTTPS:
    PHP
    define('HTTPS_SERVER', 'http://opencart.mydomain.com/admin/');
    define('HTTPS_CATALOG', 'http://opencart.mydomain.com/');
    define('HTTPS_IMAGE', 'http://opencart.mydomain.com/image/');
  • Last, again edit the HTTPS settings in the file for SSL URL path. Just add- “S” to HTTP:// to turn it HTTPS://.
    PHP
    define('HTTPS_SERVER', 'https://opencart.mydomain.com/admin/');
    define('HTTPS_CATALOG', 'https://opencart.mydomain.com/');
    define('HTTPS_IMAGE', 'https://opencart.mydomain.com/image/');
  • Save changes and close the config.php file.

Your SSL installation is complete in OpenCart. Now, whenever you login to dashboard or a visitor buys a product, it will influence the SSL for security purposes. SSL certificate assures online visitors that they are secure over the internet and provides confidence for online shopping. Visitors feel secure when any online shopping site is secured with SSL certificate. It creates a brand image in the customer’s mindset.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Writer ClickSSL
United States United States
Abel Wike at ClickSSL, offers SSL certificates can provide you with non-forgeable proof of your website's identity, and customer confidence in the integrity and security of your online business. Buy RapidSSL , Symantec , GeoTrust and Thawte SSL Certificates at wholesale price. ClickSSL.com offers SSL certificates with strong 256-bit encryption at affordable price to secure your web sites, ecommerce, exchange, intranets and extranets. Our inexpensive digital certificate is supported by over 99% of current browsers.

Official Website: http://www.clickssl.com
Our Blog: http://www.clickssl.com/blog

Facebook Profile:
http://www.facebook.com/clickssl

LinkedIn Profile:
http://www.linkedin.com/company/clickssl

Comments and Discussions

 
QuestionBLANK PAGE AFTER SSL Pin
Neo Csatornája17-Feb-15 0:34
Neo Csatornája17-Feb-15 0:34 
QuestionEnable SSL on IIS 7.0 Using Self-Signed Certificates for .Net Pin
Systematix Infotech23-Jan-14 0:19
Systematix Infotech23-Jan-14 0:19 
GeneralMy vote of 5 Pin
ANKIT_JHA12-Aug-13 4:14
professionalANKIT_JHA12-Aug-13 4:14 
GeneralRe: OpenCart SSL Pin
Member 1022845923-Aug-13 10:33
Member 1022845923-Aug-13 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.