---
title: "SSL Errors and HTTPS in Webmin"
description: "When you install Webmin on CentOS or Ubuntu, the web-based system administration interface forces HTTPS (SSL) by default. This is great for security. However, if you don't have an SSL certificate,..."
url: https://www.inmotionhosting.com/support/product-guides/cloud-server/ssl-errors-and-https-in-webmin/
date: 2020-03-09
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["Cloud Server Hosting"]
type: post
lang: en
---

# SSL Errors and HTTPS in Webmin

When you install Webmin on [CentOS](https://www.inmotionhosting.com/support/product-guides/cloud-server/how-to-install-webmin-on-centos/) or Ubuntu, the web-based system administration interface forces HTTPS (SSL) by default. This is great for security. However, if you don’t have an SSL certificate, you’ll see a [self-signed certificate warning](https://www.inmotionhosting.com/support/website/ssl/self-signed-ssl-certificate-warning/). You’ll want to fix this error sooner than later since Webmin has access to server data.

You can continue to work in HTTPS with the self-signed error. However, we recommend you install a free SSL certificate or [purchase an SSL certificate](https://www.inmotionhosting.com/support/amp/how-do-i-obtain-an-ssl-certificate/) for a secure connection.

Below we cover how to:

- [Toggle HTTPS in Webmin dashboard](#dashboard)
- [Toggle HTTPS in SSH](#ssh)
- [Fix SSL Errors on Managed Servers](#cpanel)

Develop your web applications with our scalable [Cloud Servers](https://www.inmotionhosting.com/cloud-vps).

## Toggle HTTPS in Webmin Dashboard

1. [Log into your Webmin dashboard](https://www.inmotionhosting.com/support/product-guides/cloud-server/webmin-user-login-passwords/#login)
2. Select **Webmin**, then **Webmin Configuration**
3. Select **SSL Encryption**
4. Toggle **Enable SSL?**
5. **Save** at the bottom
6. Refresh Webmin
7. Log back into Webmin

![Edit Webmin SSL Settings](https://www.inmotionhosting.com/support/wp-content/uploads/2020/03/webmin-enable-ssl-1024x438.png)

## Toggle HTTPS in SSH

1. [Log into SSH](https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/)
2. Edit the Miniserv configuration file: `nano +10 /etc/webmin/miniserv.conf`
3. Change `ssl=1` to `ssl=0` to disable HTTPS
4. Save your changes
5. Restart Webmin: `/etc/init.d/webmin restart`
6. Restart Apache: `service apache2 restart`
7. [Log into your Webmin dashboard](https://www.inmotionhosting.com/support/product-guides/cloud-server/webmin-user-login-passwords/#login)

## Fix the SSL Certificate Error on cPanel Server

This section applies to users on a managed cPanel VPS / Dedicated server. cPanel server users can request a new free SSL depending on your [AutoSSL settings in WebHost Manager (WHM)](https://www.inmotionhosting.com/support/edu/whm/autossl-and-whm/).

1. [Log into Webmin](https://www.inmotionhosting.com/support/product-guides/cloud-server/webmin-user-login-passwords/#login)
2. On the left, select **Webmin**, then **Webmin Configuration**
3. Select **SSL Encryption**
4. Select the **Let’s Encrypt **tab
5. Beside *Website root directory for validation file*, select **Other directory: **`/var/www/html`
6. Select **Request Certificate**
7. Select **Return to Webmin configuration**
8. Restart Webmin
9. On the lower-left, select the red exit icon to log out and close Webmin
10. Open Webmin in a new window to use an active SSL connection

If you need help at any time, let us know in our [Community Support Center](https://www.inmotionhosting.com/support/questions/). Or contact our [Managed Hosting](https://www.inmotionhosting.com/managed-hosting) team for advanced technical support.
