# Enabling SSL for Magento

> Secure your Magento store with HTTPS by installing an SSL certificate and turning on secure URLs in the Magento admin panel.

Source: https://helpcenter.ruachost.com/apps/magento/enabling-ssl-for-magento/

Securing your Magento store with **SSL (Secure Sockets Layer)** ensures that customer data and transactions are encrypted. On **ruachost.com**, enabling SSL is straightforward once your certificate is installed.

## Why Enable SSL?

- Protects sensitive customer information (logins, payments, personal data).
- Prevents browser “Not Secure” warnings.
- Improves customer trust and confidence.
- Boosts SEO rankings (Google favors HTTPS sites).

## Steps to Enable SSL in Magento

### Step 1: Install an SSL Certificate

- Purchase an SSL certificate from Ruachost or use the free **cPanel SSL** option.
- Verify that your domain resolves correctly with `https://`.

### Step 2: Configure SSL in Magento Admin

1. Log in to Magento as the **administrator**.
2. Navigate to **Stores → Configuration → General → Web**.
3. Expand the **Base URLs (Secure)** section.
4. Update the following fields:

   - **Secure Base URL** → `https://yourdomain.com/`
   - **Use Secure URLs on Storefront** → **Yes**
   - **Use Secure URLs in Admin** → **Yes**
5. Click **Save Config**. ✅ Your Magento site now runs securely over HTTPS.

### Step 3: Verify SSL

- Visit your site using `https://`.
- Ensure all pages load securely.
- Check for **mixed content warnings** (resources loaded via `http://`).

## Important Notes

- Always back up your site before making configuration changes.
- Use a certificate from a recognized Certificate Authority for best results.
- Mixed content issues often come from themes or modules, update resource URLs to HTTPS.
- Regularly monitor SSL status to maintain customer trust.
