wordpress 2026-12-02 ⏱ 3 min read

How to Get Free SSL for Magento

How to Get Free SSL for Magento

Magento stores customer and payment data, so https must cover both the storefront and the admin panel. The certificate is installed on the web server. Magento then needs to know about it through its secure base URL settings.

Step 1: Issue the certificate

On your own server, use an ACME client. With Nginx:

sudo certbot --nginx -d shop.example.com
sudo certbot renew --dry-run

On managed Magento hosting, ask the provider whether certificates are automatic. Compare options in free SSL vs hosting provider SSL. Verify the result with the SSL checker.

Free SSL for Magento, step 2: secure base URLs

In the admin, open Stores → Configuration → General → Web. Under Base URLs (Secure) enter the https address for the secure base URL. Then set Use Secure URLs on Storefront and Use Secure URLs in Admin to Yes. Save the configuration.

If you cannot reach the admin, use the command line from the Magento root:

bin/magento setup:store-config:set \
  --base-url-secure="https://shop.example.com/" \
  --use-secure=1 --use-secure-admin=1

Step 3: Flush caches

bin/magento cache:flush

In production mode, you may also need to recompile or redeploy static content depending on your setup. Check the current Adobe Commerce documentation for your version.

Free SSL for Magento, step 4: redirect at the server

Do the redirect at Nginx or Apache, not in Magento. An Nginx block for port 80:

server {
    listen 80;
    server_name shop.example.com;
    return 301 https://shop.example.com$request_uri;
}

Step 5: Handle proxies and CDNs

Many Magento stores sit behind Varnish, a load balancer or a CDN. If TLS ends before the application, the forwarded protocol header must reach Magento, or you will see redirect loops. The reverse proxy SSL guide explains the pattern. Make sure full-page cache rules do not serve http copies to https visitors.

Step 6: Fix content and templates

ItemWhere to look
CMS pages and blocksContent → Pages and Blocks, edit http image links
Product descriptionsCatalog → Products, check the WYSIWYG source
Theme filesSearch templates for http://
ExtensionsUpdate, or ask the vendor about https support
Media base URLStores → Configuration → Web, Base URLs

Search the database in the core_config_data table for old http values, such as base URL rows set at store view level that override the default. A store view override is a very common reason for one page staying insecure.

Step 7: Test the whole purchase path

  1. Browse category and product pages with the Console open.
  2. Add to cart and start checkout as a guest.
  3. Log in to the admin and confirm it uses https.
  4. Place a test order with a sandbox payment method.
  5. Confirm order emails contain https links.

Afterwards

Update sitemaps, feeds and marketplace listings. Review headers using the security headers guide. If you later need organisation validation for trust reasons, read when to upgrade to paid SSL. Keep renewal automatic and set a calendar reminder to check the expiry date quarterly.

Admin URL and security

Make sure the admin path is also served over https and that you did not leave an http version reachable. If you changed the admin address from the default, test the new path. Review who has admin accounts and turn on two-factor authentication where your version supports it. A certificate encrypts the traffic but does nothing about weak passwords.

Related reading: free SSL for WooCommerce, fixing mixed content warnings and free SSL for OpenCart.

Frequently Asked Questions

Why does one page still use http?

A store view or website scope may hold its own base URL value that overrides the default. Check the scope switcher in the configuration page.

Does the certificate need a restart?

Reload the web server after installing or renewing it. Magento itself only needs the cache flush after configuration changes.

Do I need a separate certificate for the admin?

Not if the admin runs on the same host name. If it uses a separate subdomain, include that name in the certificate or issue one for it.

What if checkout shows a security warning only for some customers?

Check full-page cache and CDN rules for http copies of pages, then purge them. Also check third-party scripts on the checkout, since one http script is enough to trigger the warning.

🔒 Test Your Website SSL Certificate Now
Run Free SSL Check →

✅ Post-Installation Verification & SEO Checklist

After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:

  • Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
  • Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
  • Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
  • Confirm both root and www versions resolve cleanly to one canonical HTTPS URL.
  • Verify your HTTPS property and sitemap.xml inside Google Search Console and Bing Webmaster Tools.
Technically Reviewed by TryFreeSSL Security Team
Last updated: 2026-12-05
About Us →

Free SSL Certificates, Live SSL Checker & CSR Generator

Issue trusted Let's Encrypt SSL certificates in 60 seconds with zero server setup.

Related Articles

🤖 TryFreeSSL AI Assistant