Fixing SSL Chain Certificate Errors in Virtualmin

For a lot of our clients we use the free SSL supplied by Cloudflare, but in some cases that is not possible and we need to buy a certificate.

One of the issues we have encountered when using Virtualmin is that it doesn’t appear to install the SSL correctly and the chain.crt file is missing. This then causes security errors in some browsers or some web services such as Facebook.

This post is how to fix them, and we hope it helps other small web development companies fix this potential issue. At the very least it is a helpful guide to remind us what to do, as we wasted an hour researching how to fix it the second time we did it. It is a very easy fix when you know what to do, and takes just a few minutes. Assuming you have enabled SSL on the site and installed the certificate do the following:

  1. Check if you have working chain certificate via https://whatsmychaincert.com/
  2. If you don’t have w working one, the website will give you an option to download it.
  3. Upload the certificate to the server, we usually put it in the same folder as the actual SSL certificate, but you could place it elsewhere.
  4. Connect to your server via SSH
  5. Sudo nano into the websites config file, this will be something like /etc/apache2/sites-available/domain.co.uk.conf
  6. In our case, we had to scroll all the way to the bottom of this file until you see the section with SSLEngine on
  7. And the line SSLCertificateFile /path/to/example.com.crt
  8. Ctrl – x to exit and yes to save
  9. Reload apache

 

The website should now have a fully working SSL certificate.

 

 

James Smythe

Recent Posts

Understanding Google PageSpeed Insights & Core Web Vitals – A green 90+ can still show as needing improvement in Search Console

Many website owners have breathed a sigh of relief that Google has delayed the algorithm…

2 months ago

Most Google searches generate no website traffic with zero-click searches

I briefly touched upon zero-click searches in a recent post about Google featured snippets. The…

4 months ago

Takedown bad Google My Business with a new tool from Google

Online reviews can make or break a business nowadays, which has unfortunately made reviews become…

4 months ago

Google featured snippets improve to normal levels following drop

Featured Snippets in Google are a blessing and a curse. One had they offer a…

4 months ago

LiteSpeed Cache + QUIC.cloud CDN vs WP Rocket + Cloudflare CDN PageSpeed Insights with Divi WordPress Theme

We all know website speed is important, ignoring Google; a slow website provides a terrible…

5 months ago

This website uses cookies.