VestaCP: How to fix LetsEncrypt SSL certificate (Admin Panel)

Recently I have been playing around with VestaCP, an alternative to cPanel. VestaCP is a free, open source website control panel with website, email, database, and DNS functionalities built in.

The Issue (Symptoms)

Unfortunately, when I installed VestaCP and setup an SSL certificate via LetsEncrypt though the VestaCP admin panel, the certificate was not installed into the VestaCP web interface (admin panel). This meant that whenever I tried to access the VestaCP admin panel, I was presented with the following SSL error:

The Problem

This error was present because the SSL certificate generated by VestaCP and LetsEcnrypt was not installed in the VestaVP admin panel. Instead, it was only installed on the web domain as shown in the image below (please note, the domain, IP address and SSL certificate information have been removed):

The Solution

The solution, therefore, is to install the very same certificate from the web domain (shown above) into the VestaCP admin panel. The SSL certificate information for the VestaVP admin panel is located by default at the following location (for version 0.9.8):

/usr/local/vesta/ssl

The valid SSL certificate information for your domain can be found in the following location:

/home/admin/conf/web/

The files we are interested in here are “ssl.[your server domain].key” and “ssl.[your server domain].crt”.

There are two methods for solving this issue;

  1. Create a symbolic link from “/home/admin/conf/web/” (for each of the two files mentioned above) to “/usr/local/vesta/ssl”
  2. Simply copy the two files from “/home/admin/conf/web/” to “/usr/local/vesta/ssl”

The Solution – Method 1

This solution consists of creating a symbolic link from the certificate origin location to the destination location. This is the best solution since VestaCP will automatically renew LetsEncrypt certificates – a symbolic link would ensure any updates are reflected for the VestaCP admin panel.

cd /usr/local/vesta/ssl
mv certificate.crt certificate.crt_old
mv certificate.key certificate.key_old
ln -s /home/admin/conf/web/ssl.[your server domain].key /usr/local/vesta/ssl/certificate.key
ln -s /home/admin/conf/web/ssl.[your server domain].crt /usr/local/vesta/ssl/certificate.crt
sudo service vesta restart

Please be sure to replace “[your server domain]” with the domain your server is using for VestaCP.

The Solution – Method 2

This solution consists of copying the certificate key and certificate file.

Downside: Since LetsEncrypt requires certificates to be renewed every three months, you would need to perform this method each time the certificate renews.

cd /usr/local/vesta/ssl
mv certificate.crt certificate.crt_old
mv certificate.key certificate.key_old
cp /home/admin/conf/web/ssl.[your server domain].key /usr/local/vesta/ssl/certificate.key
cp /home/admin/conf/web/ssl.[your server domain].crt /usr/local/vesta/ssl/certificate.crt

sudo service vesta restart

Please be sure to replace “[your server domain]” with the domain your server is using for VestaCP.

Setting up your own website 

This post is targeted at those who wish to create their own websites from scratch (beginners-intermediate users). This guide is not intended for those with no computer background – if this is the case then I highly recommend you use an easy site builder like Wix, 1and1 or SquareSpace. This guide is intended to help those who wish to learn how to code in HTML/CSS/PHP but have no idea how to get their code online.

The advantages of building your own website opposed to using a website builder (such as Wix, 1and1, SquareSpace etc) have been covered in detail by other users. Here are a few articles/posts/links I found on the Internet which helps explain the difference between the two:

http://www.skilledup.com/articles/web-developers-vs-web-builders

https://www.quora.com/What-are-the-advantages-of-coding-your-own-website-rather-than-using-a-website-builder

https://teamtreehouse.com/community/cms-vs-hand-coding-websites

Continue reading “Setting up your own website “

Creating custom nameservers with WHM and NameCheap

This is a how-to from one of my old projects (HostWoot). This still applies today so I thought it would be best to immortalise the post here on this blog!

This tutorial will explain how to create custom nameservers when using WHM in combination with NameCheap.

The content below is from the old HostWoot forums: here.

Continue reading “Creating custom nameservers with WHM and NameCheap”

iPhone 6S+ to the Pixel XL: My Experience

Introduction

This is a topic I have been meaning to cover ever since I switched to the Pixel XL. My SIM only contract was due for an upgrade at the beginning of this year and my mobile service provider offered me a great deal if I upgraded to a contact which included a phone. The choices were between the iPhone 7, Samsung Galaxy S7 and the Pixel (Pixel XL too).

This post will be split into 5 sections: Background, Decisions and Choices, The Switch, My Experience so far and a summary.

TLDR; I switched from an iPhone 6s+ to the Pixel XL. The Pixel XL is an amazing phone and Google have finally addressed my main concerns about the Android operating system.

Continue reading “iPhone 6S+ to the Pixel XL: My Experience”

Hello World!

echo “Hello World!”;

I woke up today thinking about what I could do about hostwoot.com, one of my projects from the past. I started off by creating a simple index page stating that the service is no longer available however this prompted me to take a look at my old backup files. Luckily, I found backups for both my personal blog (this blog) as well as all the forum data for HostWoot! I, therefore, spent most of today restoring these backups for nostalgia and archive purposes.

The homepage (hostwoot.com) has been updated to show the old logo, links to the old forums, as well as some randomly picked reviews from two review websites.

Whilst browsing through the backup archive for HostWoot, I found an old backup of this blog! I therefore immediately uploaded and restored all the posts and fixed most bad links.

This post signifies the re-launch of this blog! Hello World!

I need some suggestions for a new theme! Please leave me a comment below with a free WordPress theme you think I should use.

You have probably read this on most blogs but here goes; I am not too sure what I will be posting about on this blog, however, I am sure it will be technology related since I do not wish to speak too much about my personal life or my travels.