enable-ssl-in-Magento-2

Enabling SSL in Magento 2

Magento 2 is one of the most powerful and customizable ecommerce platforms. In order to add SSL certificate to your Magento 2 store you will need to first buy it. Once you’ve purchased the certificate and installed it, you can move on to enabling it in your Magento 2 store.

Let’s get started!

Go to Stores → Configuration from the admin panel of your store:

Stores - Configuration

Now click on Web under General Tab:

click on web

Unfold the Base URLs (Secure) section and update the Secure Base URL field by changing http to https:

secure base url

Now select Yes for Use Secure URLs on Storefront and Use Secure URLs in Admin fields:

select yes

Use Secure URLs on Storefront: By selecting Yes, all of your storefront pages will open with https.

Use Secure URLs in Admin: By selecting Yes, your store admin panel will be open with https.

Lastly, just click Save Config:

save configuration

Ref: magenticians