How to Enable SSL Certificate in Magento 2

Enable SSL Certificate in Magento 2

In this tutorial we are going to show you how to enable SSL certificate for your store in Magento 2, This article will guide you how to enable SSL in Magento 2 step by step.

What is an SSL Certificate?

SSL (Secure Sockets Layer) Certificates provide secure, encrypted communications between a website and an internet browser. SSL stands for Secure Sockets Layer, the protocol which provides the encryption. SSL Certificates are typically installed on pages that require end-users to submit sensitive information over the internet like credit card details or passwords. Example pages include payment pages, online forms and login pages.

First of all, you need to install SSL certificate in your domain, After you have to enable it for your Magento 2 store. Follow these steps below to enable SSL:

Now let’s start!

Step 1: Log in to your Magento backend. Go to Stores > Settings > Configuration.

Step 2: On the left menu, under General section, click Web.

Step 3: The below settings page will be displayed.

Step 4: Expand Base URLs (Secure) section. Then, do the following:

  • In the Base URL field, change “http” into “https”.
  • Set Use Secure URLs on Storefront to Yes.
  • Set Use Secure URLs in Admin to Yes.


Step 5: Click the Save Config button.

How to Enable SSL Certificate in Magento 2 Click To Tweet

We hope this article helped you learn how to enable SSL certificate in Magento 2. You may also want to see our list of How to Get Active Payment Methods in Magento 2.

If you liked this article, then please subscribe to our Newsletter for Magento tutorials. You can also find us on Twitter and Facebook. If you have any problem or would like to add to the discussion, leave a comment below!

You May Also Like

Editorial Staff

About the Author: Editorial Staff

Editorial Staff at the MageBeginners is a team of Magento experts writing about Magento Tutorials, Themes, Extensions, Guides, Tricks and much more...

Leave a Reply

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