#encrypt
4 commande(s) avec le tag #encrypt
Commandes partagées par la communauté CodeBox, copiables en un clic.
Ansible
Chiffrer une valeur inline
Chiffre une valeur à insérer directement dans un fichier YAML.
ansible-vault encrypt_string "mon-mot-de-passe" --name "db_password"
Ansible
Chiffrer un fichier avec Vault
Chiffre un fichier de variables avec Ansible Vault.
ansible-vault encrypt vars/secrets.yml
Apache
Obtenir un certificat SSL
Génère et installe un certificat SSL Let's Encrypt pour Apache.
sudo certbot --apache -d mon-site.com -d www.mon-site.com
Installe Certbot et son plugin Apache pour les certificats Let's Encrypt.
sudo apt install certbot python3-certbot-apache -y