Secure Socket Layer (SSL) has become an important aspect of eCommerce stores. SSL ensures that the two-way communication between the customer and the store remains secure throughout the duration of the transaction.
Having a store protected using SSL shows that the store owner is serious about guarding the personal information of the clients. In terms of SERP standing, a store with SSL ranks better and higher.
Installing and maintaining a SSL certificate could be a hassle for store owners. If not done correctly, the issue could seriously hamper the experience of the visitors. The result is a significant reduction in both the revenue and repute of the store.
When working with SSL, the store owners should make sure that:SSL is installed correctly the secure URL is set Secure URLs are implemented in the frontend and the backend the SSL certificate is set to include www there are no insecure links on the store
I will now discuss the most common SSL related problems that plague ecommerce stores. In addition, I will also offer solutions for the problems.SSL Not Working
Activate SSL from the Magento admin by following these steps:Navigate to System > Configuration > General > Web Click the Secure tab Enable Yes for the option Use Secure URLs in the frontend Enable Yes for the option Use Secure URLs in the Admin Check the offload header as SSL_OFFLOADED
After the SSL has been activated, the store’s URL will change from HTTP : // to HTTPS : // .
If the issue persists, the problem might lie on the database layer. Follow these steps to remedy the situation:Choose core_config_data Run the query: Select * from core_config_data where path = ‘ % web / secure / base_url % ’ ; Check the value column. If it is HTTPS , it means that the admin setup has been done.
If SSL still does not work, there is something wrong with the SSL setup at your store. Sometimes, this issue crops up after successful installation and activation of SSL. An issue in the Ajax call or a third party URL call might also cause this problem. Here is how these issues could be resolved:Ajax Call
If there is any setup issue in Ajax call, change the following code:
echo Mage :: getUrl ( ‘ MYMODULE / MYCONTROLLER / MYACTION ’ , array ( ‘ _secure ’ = > Mage :: app ( ) -> getStore ( ) -> isCurrentlySecure ( ) ) ) ;Third-Party URL Call
The URL change should be HTTP : //www.example.com instead of HTTPS : //www.example.com .Magento SSL Checkout Page Redirected
This issue arises when SSL at the store is not working properly. In many instances, the checkout page gets redirected to other pages such as the homepage or the index page.
The above process is applicable to all Magento versions.Unable to Get Local Issuer Certificate
To solve this problem, follow these steps:Create a local copy of certs and save it at a secure location on the server. If you are using a XAMPP file, save the file at: C : \ Installation_Dir \ xampp \ php \ cacert . pem Do not forget to update ini to remember the path of the file. Update the following lines:
[CACerts] cainfo="C:/xampp/htdocs/_certs/ca-bundle.crt" cafile="C:/xampp/htdocs/_certs/ca-bundle.crt" Update the file as per the location of your saved file. Finally, restart the server to apply the changes. Admin Is Not Accessible After Installing SSL Enabled Version of Magento
There are 2 ways of solving this issue:Manually add the entry for web / secure / use_in_adminhtml into the core_config_data Add the following SQL query:
INSERT INTO core_config_data ( scope , scope_id , path , value ) VALUES ( 'default' , 0 , 'web/secure/use_in_adminhtml' , 1 ) ;Change the URL in the table back to HTTP : //your.domain.com/ .
Clear the cache in both the cases by deleting / var / cache .Magento 404 Page Not Found With SSL
The SSL has its own configuration files and sometimes when SSL does not work well, it may give the error of 404 (Page not found). Normally, the file is as:sudonano / etc