# How to Enable a Free SSL Certificate (AutoSSL) in cPanel

https://netiyo.com/en/knowledgebase/article/how-to-enable-a-free-ssl-certificate-autossl-in-cpanel

If the padlock icon doesn't appear in your site's address bar, or browsers show your visitors a **"Not secure"** warning, your site doesn't have an active SSL certificate. With the **AutoSSL** feature in cPanel, included in every Netiyo hosting plan, you can activate a free SSL certificate for your domains in a few minutes and have it renew automatically.

If you'd like to learn what SSL is and how free and paid certificates differ, take a look at our article [What Is an SSL Certificate? Free vs. Paid SSL](https://netiyo.com/en/what-is-an-ssl-certificate-free-vs-paid-ssl).

## Check Before You Start

For AutoSSL to issue a certificate, the certificate authority must validate your domain. Make sure the following conditions are met:

- **Your domain must point to the Netiyo server:** The domain's nameservers must be set to Netiyo, or its A record must point to your hosting server's IP address.
- **DNS propagation must be complete:** If you've just changed your nameservers or A record, propagation can take up to 24 hours. AutoSSL validation may fail before then.
- **The www and mail subdomains must also point to the server:** The *www.yourdomain.com* and *mail.yourdomain.com* records must point to the same server.
- **If you use Cloudflare:** The proxy (orange cloud) must be turned off during validation, or the Cloudflare SSL mode must be set to *Full*.

## Step 1: Log In to cPanel

1. Sign in to the Netiyo Client Area and select your hosting service under **My Services**.
2. Click the **Log in to cPanel** button. You can also go to **https://yourdomain.com:2083** directly.

## Step 2: Check the SSL/TLS Status

1. On the cPanel home page, scroll down to the **Security** section.
2. Click the **SSL/TLS Status** icon.
3. The list shows your domain and subdomains (www, mail, cpanel, webmail, etc.) along with their certificate status:
  - **Green padlock:** A valid certificate is installed; no action is needed.
  - **Yellow / red icon:** There is no certificate, it has expired, or a self-signed certificate is in use.

## Step 3: Run AutoSSL

1. Click the **Run AutoSSL** button at the top of the SSL/TLS Status page.
2. The process starts in the background and usually finishes within a few minutes. You can leave the page in the meantime.
3. Refresh the page after a few minutes. If you see a green padlock and the text **"AutoSSL Domain Validated"** next to your domains, your certificate is active.

**Note:** AutoSSL certificates are valid for 90 days and are **renewed automatically** by the system before they expire. You don't need to do anything to renew them.

## Step 4: Turn On HTTPS Redirection

Once the certificate is installed, visitors can still reach your site via *http://*. To send all traffic over a secure connection:

1. On the cPanel home page, click the **Domains** icon in the **Domains** section.
2. Turn on the **Force HTTPS Redirect** toggle in your domain's row.
3. Open *http://yourdomain.com* in your browser and check that you are automatically redirected to *https://*.

## If You Use WordPress

On WordPress sites, the site address must also be updated to HTTPS after SSL is activated:

1. Log in to the WordPress dashboard and go to **Settings > General**.
2. In the **WordPress Address (URL)** and **Site Address (URL)** fields, change *http://* to *https://*.
3. Click **Save Changes**. If you are logged out, simply log in again.

If the padlock still doesn't appear, the page may be loading images or files over *http://* (mixed content). In that case, you can use a plugin such as "Better Search Replace" to replace old *http://yourdomain.com* addresses in the database with *https://yourdomain.com*. We strongly recommend taking a backup before doing this.

## Common Problems

### AutoSSL reports a "DCV (Domain Control Validation) failed" error

This error means the certificate authority couldn't validate your domain. The most common cause is that the domain points to a different server. Check that your domain's A record points to your hosting IP address. Also make sure the *.htaccess* file in your site's root directory doesn't contain a rule that blocks access to the */.well-known/* folder.

### The main domain has SSL, but the www address doesn't

There may be no A or CNAME record in DNS for the *www* subdomain. In cPanel, use the **Zone Editor** to check that a record exists for *www*, then run AutoSSL again.

### The certificate is active, but the browser still says "Not secure"

This may be caused by your browser cache. Try opening the page in a private window. If the problem persists, check for the mixed content issue described above.

### I get a certificate warning in my email client

Check that the *mail.yourdomain.com* subdomain also shows a green padlock in the SSL/TLS Status list. For your email settings, see our guide [How to Create a Business Email Account in cPanel and Add It to Outlook](https://netiyo.com/en/knowledgebase/article/how-to-create-a-business-email-account-in-cpanel-and-add-it-to-outlook).

### I get a "Too many redirects" error when using Cloudflare

If the Cloudflare SSL mode is *Flexible* while HTTPS redirection is enabled in cPanel, an infinite redirect loop occurs. In the Cloudflare dashboard, change the SSL/TLS mode to **Full** or **Full (Strict)**.

## Need Help?

If your SSL certificate still isn't active after following these steps, you can open a **Support Ticket** from the Netiyo Client Area. Including your domain name and the error message shown on the SSL/TLS Status page in your ticket helps us resolve the issue quickly.
