Having issues creating an SSL enabled sub-domain when using Let's Encrypt

If you have a parent domain that is SSL enabled with a Let's Encrypt certificate you may get the following error if you try to enable SSL on a subdomain.  Especially if the sub-domain doesn't share the parent domain's domain name.  

Adding new SSL virtual website ..
.. certificate file is not valid : Data starts with , but expected -----BEGIN CERTIFICATE-----

If this occurs do the following

  1. Go to the parent domain in the dropdown at the top of the left menu bar.
  2. Once the parent domain is loaded select "Server Configuration".
  3. Within the Server Configuration sub-menu select "SSL Certificate".
  4. Go to the "Let's Encrypt" tab.
  5. Select "Domain names listed here" making sure that the domains in the "Domains Associated with this server" are listed then...
  6. Add the sub-domain you are trying to enable to the list.
  7. Click "Request Certificate".
  8. Waiting until completed.  It may take some time depending upon how many domains you have in the list.
  9. Now go to you sub-domain and enable SSL.

Was this answer helpful?

 Print this Article

Also Read

Installing WordPress

Installing Wordpress via Virtualmin is very easy. This articles show you how. If you would prefer...

Add Forward Only Email Address

When all you want to do is forward your domain emails to your current address (i.e. your hotmail...

FTP Access

You will need the following details to access FTP.  Please note we use Secure FTP or SFTP as it...

Change your password

You can change your password in two places. Firstly you can change it for your main account and...

Accessing the Control Panel

The easiest way to access the control panel is via the members section.  You can do this as...