#encrypt

4 commande(s) avec le tag #encrypt

Commandes partagées par la communauté CodeBox, copiables en un clic.

Chiffre une valeur à insérer directement dans un fichier YAML.

bash
ansible-vault encrypt_string "mon-mot-de-passe" --name "db_password"

Chiffre un fichier de variables avec Ansible Vault.

bash
ansible-vault encrypt vars/secrets.yml

Génère et installe un certificat SSL Let's Encrypt pour Apache.

bash
sudo certbot --apache -d mon-site.com -d www.mon-site.com

Installe Certbot et son plugin Apache pour les certificats Let's Encrypt.

bash
sudo apt install certbot python3-certbot-apache -y