Install Webmin via APT

If you like to install and update Webmin via APT on debian.

Edit the file on your system :

/etc/apt/sources.list 

and add the line :

deb http://download.webmin.com/download/repository sarge contrib

You should also fetch and install GPG key with which the repository is signed, with the commands :

cd /root

wget http://www.webmin.com/jcameron-key.asc

apt-key add jcameron-key.asc

You will now be able to install with the commands :

apt-get update

apt-get install apt-transport-https

apt-get install webmin

All dependencies should be resolved automatically.

More info: http://www.webmin.com/deb.html

 

How to install free SSL (Let’s encrypt) Certificate on Debian server

Let’s Encrypt is a free, automated, and openCertificate Authority. The goal is to implemented the certificate on a web server. I used a standard Debian 7 server with webmin installed. Webmin is a web interface to manage your server. You can find more info here.

First connect to your Webmin interface (usually port 1000):

Click on the left menu and go to webmin configuration:

Click on « SSL Encryption »:

Select the last tab « Let’s encrypt » and enter your full hostmane, like: « server1.example.be » (whithout quote). Select the options below and click on « Request Certificate »:

With the menu, expand the « Servers » items and click on « Apache Webserver »

Select your default Virtual Server with the support of encryption (by default it is the 443 port):

Select « SSL Options » icon and enter the paths below:

Click « Save »  and then « Apply Changes », the apache service will restart and you have now your free certificate on your web server: