Froxlor is a open source server management software that allows you to manage your virtual server.
Article only covers steps to setup LetsEncrypt (LE) with following setup
- Ubuntu 18.04
This article assumes you have installed Froxlor and configured. Once you have everything running you are now ready to setup LE. To follow along with this article you will need root or sudo access to your server.
Step 1: Create a Self Signed Certificate
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
You will be prompt to provide some basic information for your company. Those information will be used to setup the certificate. For Common Name (e.g. server FQDN or YOUR name use your server domain name or IP address. Once you fill out all information openssl will create the self signed ssl certificate for you. now keep note of key and crt file path as we will need both of them in just a little while.
- Certificate path:
- SSL Key file path:
You can find more detailed article on creating self signed SSL certificate in Digitalocean blog.
Step 2: Froxlor – Create IP/Port for SSL
Login into your Froxlor Admin panel and go to Resources > IPs and Ports. If you have not setup any ports/IPs you should see only one entry with your server IP with port 80.
- Copy the IP address of your server and click Add IP/Port.
- Paste IP on the IP field.
- Put 443 in Port field.
- Scroll down to Webserver SSL config
- Check Is this an SSL port
- Paste Certificate path you created previously into Path to SSL Certificate Field
- Paste Keyfile path into Path to SSL Keyfile Field
Now you are mostly done with the ssl settings you need for Froxlor. Next we are going to setup Letsencrypt (LE) settings.
Step 3: Enable SSL For Server
Go to System > Settings, Set SSL settings to YES.
Step 4: Letsencrypt Settings For Your Domain
Now find the domain you want to setup LE cert and edit.
- Find ServerAlias value for the domain under Webserver settings and make sure you select WWW (www.domain.tld) Current version of Froxlor doesn’t let you select wildcard.
- Scroll down to Webserver SSL Settings and setup following
- Check Enable Uses of SSL to YES
- Check SSL IP Addresss(es)
- Use Letsencrypt to Yes
- You can keep everything else to default.
Now wait about 10 mins, Froxlor will run cronjob to reflect all changes in your server. Let me know in the comment box if you face any problem.