Skip to content

Comment installer Webmin avec un certificat SSL Let's Encrypt sur Ubuntu 24.04

Cloud Infrastructure Expert
Comment installer Webmin avec un certificat SSL Let's Encrypt sur Ubuntu 24.04

 

Introduction

Dans ce guide, nous allons vous montrer comment installer Webmin sur votre serveur vps avec un certificat SSL gratuit de Let’s Encrypt.

Prérequis

  • Un serveur vps tournant sur Ubuntu 24.04.
  • Accès root ou sudo.
  • Un nom de domaine pointant vers votre serveur.

1. Mise à jour de votre système

Commencez par mettre à jour votre système:

sudo apt update && sudo apt upgrade -y
    

2. Installation de Webmin

Installez les dépendances nécessaires:

sudo apt install software-properties-common
    

Ajoutez le dépôt Webmin:

sudo add-apt-repository "deb http://download.webmin.com/download/repository sarge contrib"
    

Ajoutez la clé GPG:

wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -
    

Mettez à jour les dépôts et installez Webmin:

sudo apt update
sudo apt install webmin -y
    

3. Configuration de Let’s Encrypt

Installez Certbot, l’outil pour obtenir un certificat SSL:

sudo apt install certbot
    

Arrêtez le service Webmin:

sudo service webmin stop
    

Utilisez Certbot pour obtenir le certificat:

sudo certbot certonly --standalone -d votredomaine.com
    

4. Configuration de Webmin pour utiliser SSL

Modifiez le fichier de configuration de Webmin:

sudo nano /etc/webmin/miniserv.conf
    

Modifiez les lignes suivantes:

  • local=10234
  • ssl=1
  • certfile=/etc/letsencrypt/live/votredomaine.com/fullchain.pem
  • keyfile=/etc/letsencrypt/live/votredomaine.com/privkey.pem

Redémarrez Webmin:

sudo service webmin start
    

5. Accéder à Webmin

Vous pouvez maintenant accéder à Webmin via l’URL suivante:

https://votredomaine.com:10000

Conclusion

Vous avez maintenant installé Webmin sur votre serveur vps avec un certificat SSL Let’s Encrypt. Profitez de la gestion simplifiée de votre serveur!

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.