Catalogue des Commandes 09/03/2026 18:00:00 angularforall.com

- NGINX : CLI, config et reverse proxy

Nginx Nginx-Cli Nginx-Config Nginx-Server Reverse-Proxy Nginx-Ssl Nginx-Https Virtual-Hosts Load-Balancing Web-Server Devops Sysadmin Performance-Tuning Linux-Server Http-Server

Commandes CLI NGINX : gestion de serveurs web, configuration, virtual hosts, reverse proxy, SSL, monitoring et optimisation de performances en production.

nginx
Description :

Démarre le serveur Nginx

Options :
  • -c
  • --conf-path
  • -g
  • --global-directives
  • -p
  • --prefix
  • -q
  • --quiet
  • -s
  • --signal
  • -t
  • --test
  • -T
  • --test-config
  • -v
  • --version
  • -V
  • --verbose-version
  • -h
  • --help
  • -?
  • -e
  • --error-log-path
nginx -s stop
Description :

Arrête Nginx rapidement

Options :
  • -s
nginx -s quit
Description :

Arrête Nginx gracieusement (attend la fin des requêtes)

Options :
  • -s
nginx -s reload
Description :

Recharge la configuration sans interruption

Options :
  • -s
nginx -s reopen
Description :

Rouvre les fichiers de logs

Options :
  • -s
nginx -t
Description :

Teste la configuration et quitte

Options :
  • -t
nginx -T
Description :

Teste la configuration et affiche la configuration complète

Options :
  • -T
nginx -v
Description :

Affiche la version de Nginx

Options :
  • -v
nginx -V
Description :

Affiche la version et les options de compilation

Options :
  • -V
nginx -c /etc/nginx/nginx.conf
Description :

Démarre avec un fichier de configuration spécifique

Options :
  • -c
  • --conf-path
nginx -g "daemon off;"
Description :

Démarre avec des directives globales (ex: foreground)

Options :
  • -g
  • --global-directives
nginx -g "worker_processes 4;"
Description :

Définit le nombre de workers

Options :
  • -g
nginx -p /custom/prefix
Description :

Définit le préfixe de chemin

Options :
  • -p
  • --prefix
nginx -e /var/log/nginx/error.log
Description :

Spécifie le fichier de log d'erreur

Options :
  • -e
  • --error-log-path
nginx -q
Description :

Mode silencieux (supprime les messages non critiques)

Options :
  • -q
  • --quiet
systemctl start nginx
Description :

Démarre Nginx via systemd

systemctl stop nginx
Description :

Arrête Nginx via systemd

systemctl restart nginx
Description :

Redémarre Nginx via systemd

systemctl reload nginx
Description :

Recharge la configuration via systemd

systemctl status nginx
Description :

Affiche le statut de Nginx

systemctl enable nginx
Description :

Active Nginx au démarrage

systemctl disable nginx
Description :

Désactive Nginx au démarrage

service nginx start
Description :

Démarre Nginx via SysVinit

service nginx stop
Description :

Arrête Nginx via SysVinit

service nginx restart
Description :

Redémarre Nginx via SysVinit

service nginx reload
Description :

Recharge la configuration via SysVinit

service nginx status
Description :

Affiche le statut via SysVinit

/etc/init.d/nginx start
Description :

Démarre Nginx via script init.d

Options :
  • stop
  • restart
  • reload
  • status
nginx -s stop && nginx
Description :

Redémarrage dur (stop puis start)

kill -HUP $(cat /var/run/nginx.pid)
Description :

Recharge la configuration via signal HUP

kill -QUIT $(cat /var/run/nginx.pid)
Description :

Arrêt gracieux via signal QUIT

kill -TERM $(cat /var/run/nginx.pid)
Description :

Arrêt rapide via signal TERM

kill -USR1 $(cat /var/run/nginx.pid)
Description :

Rouvre les fichiers de logs via signal USR1

kill -USR2 $(cat /var/run/nginx.pid)
Description :

Mise à niveau binaire sans interruption

kill -WINCH $(cat /var/run/nginx.pid)
Description :

Arrêt gracieux des workers

nginx -t && nginx -s reload
Description :

Teste puis recharge la configuration

tail -f /var/log/nginx/access.log
Description :

Surveille le log d'accès en temps réel

Options :
  • -f ⚠️
  • -n
tail -f /var/log/nginx/error.log
Description :

Surveille le log d'erreur en temps réel

Options :
  • -f ⚠️
  • -n
tail -n 100 /var/log/nginx/access.log
Description :

Affiche les 100 dernières lignes du log d'accès

Options :
  • -n
grep "404" /var/log/nginx/access.log
Description :

Recherche les erreurs 404 dans les logs

Options :
  • -c
  • -v
  • -i
  • -A
  • -B
grep -c "GET" /var/log/nginx/access.log
Description :

Compte le nombre de requêtes GET

Options :
  • -c
awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -10
Description :

Top 10 des IP les plus actives

awk '{print $7}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head -10
Description :

Top 10 des URLs les plus demandées

cat /var/log/nginx/access.log | wc -l
Description :

Compte le nombre total de requêtes

logrotate -f /etc/logrotate.d/nginx
Description :

Force la rotation des logs Nginx

Options :
  • -f ⚠️
  • -d
  • -v
logrotate -d /etc/logrotate.d/nginx
Description :

Teste la rotation des logs (dry run)

Options :
  • -d
mv /var/log/nginx/access.log /var/log/nginx/access.log.old && nginx -s reopen
Description :

Rotation manuelle des logs

goaccess /var/log/nginx/access.log
Description :

Analyse les logs avec GoAccess (interface interactive)

Options :
  • -f ⚠️
  • --log-format ⚠️
  • -o
  • --output
  • --real-time-html ⚠️
  • --ws-url
goaccess /var/log/nginx/access.log -o report.html --log-format=COMBINED
Description :

Génère un rapport HTML avec GoAccess

Options :
  • -o
  • --log-format ⚠️
goaccess /var/log/nginx/access.log --real-time-html -o /var/www/html/report.html
Description :

Rapport en temps réel

Options :
  • --real-time-html ⚠️
  • -o
nginx -t 2>&1 | grep -i error
Description :

Teste la configuration et affiche uniquement les erreurs

nginx -T | grep server_name
Description :

Affiche tous les server_name configurés

nginx -T | grep -A5 "location"
Description :

Affiche les blocs location avec contexte

nginx -T | grep -E "listen|server_name"
Description :

Affiche les ports et noms de domaine

ps aux | grep nginx
Description :

Affiche les processus Nginx en cours

ps -ef | grep nginx
Description :

Affiche les processus Nginx (format détaillé)

pgrep nginx
Description :

Affiche les PID des processus Nginx

Options :
  • -l
  • -a
  • -f ⚠️
netstat -tulpn | grep nginx
Description :

Affiche les ports en écoute par Nginx

Options :
  • -tulpn
  • -tulpn | grep :80 ⚠️
ss -tulpn | grep nginx
Description :

Affiche les sockets Nginx (alternative à netstat)

Options :
  • -tulpn
lsof -i :80
Description :

Affiche le processus utilisant le port 80

Options :
  • -i
lsof -i :443
Description :

Affiche le processus utilisant le port 443

Options :
  • -i
curl -I http://localhost
Description :

Teste l'en-tête HTTP du serveur local

Options :
  • -I
  • -v
  • -X
  • -H
  • -d
curl -v http://localhost
Description :

Teste avec détails de la requête/réponse

Options :
  • -v
curl -H "Host: example.com" http://localhost
Description :

Teste avec un Host header personnalisé

Options :
  • -H
curl -X POST -d "data=test" http://localhost/api
Description :

Teste une requête POST

Options :
  • -X
  • -d
  • --data
wget --spider http://localhost
Description :

Vérifie si le serveur répond (spider)

Options :
  • --spider
  • -S
  • --server-response ⚠️
ab -n 1000 -c 10 http://localhost/
Description :

Benchmark avec Apache Bench (1000 requêtes, 10 concurrentes)

Options :
  • -n
  • -c
  • -t
  • -k
  • -H
  • -p
  • -T
  • -g
  • -e
ab -n 10000 -c 100 -t 30 http://localhost/
Description :

Benchmark limité à 30 secondes

Options :
  • -t
wrk -t 4 -c 100 -d 30s http://localhost/
Description :

Benchmark avec wrk (4 threads, 100 connexions, 30s)

Options :
  • -t
  • -c
  • -d
  • -s
  • -H
  • --latency
wrk -t 4 -c 100 -d 30s --latency http://localhost/
Description :

Benchmark avec statistiques de latence

Options :
  • --latency
siege -c 50 -t 30s http://localhost/
Description :

Benchmark avec Siege (50 utilisateurs, 30 secondes)

Options :
  • -c
  • -t
  • -r ⚠️
  • -d
  • -f ⚠️
  • -i
  • -b
  • -g
  • -H
siege -c 100 -r 10 http://localhost/
Description :

100 utilisateurs, 10 répétitions chacun

Options :
  • -c
  • -r ⚠️
hey -n 10000 -c 100 http://localhost/
Description :

Benchmark avec Hey (10k requêtes, 100 concurrentes)

Options :
  • -n
  • -c
  • -q
  • -t
  • -z
  • -m
  • -H
  • -T
  • -a
  • -d
  • -o
vegeta attack -rate=100 -duration=30s -targets=targets.txt | vegeta report
Description :

Benchmark avec Vegeta (100 req/s pendant 30s)

Options :
  • attack
  • report
  • plot
  • encode
  • decode
echo "GET http://localhost/" | vegeta attack -rate=100 -duration=10s | vegeta report
Description :

Test simple avec Vegeta

htop -p $(pgrep -d',' nginx)
Description :

Surveille les processus Nginx avec htop

strace -p $(cat /var/run/nginx.pid) -f -e trace=network
Description :

Trace les appels réseau de Nginx

Options :
  • -p
  • -f ⚠️
  • -e
strace -p $(pgrep nginx | head -1) -c
Description :

Statistiques des appels système

Options :
  • -p
  • -c
tcpdump -i any port 80 -A
Description :

Capture le trafic HTTP sur le port 80

Options :
  • -i
  • port
  • -A
  • -w
  • -r ⚠️
  • -c
  • -n
  • -v
tcpdump -i any port 443 -w nginx.pcap
Description :

Capture le trafic HTTPS dans un fichier

Options :
  • -i
  • port
  • -w
openssl s_client -connect localhost:443 -servername example.com
Description :

Teste la connexion SSL/TLS avec SNI

Options :
  • -connect
  • -servername
  • -showcerts
  • -debug
  • -state
  • -tls1_2
  • -tls1_3
openssl s_client -connect localhost:443 -showcerts
Description :

Affiche la chaîne de certificats

Options :
  • -showcerts
echo | openssl s_client -connect localhost:443 2>/dev/null | openssl x509 -noout -dates
Description :

Affiche les dates de validité du certificat

openssl dhparam -out /etc/nginx/dhparam.pem 2048
Description :

Génère les paramètres Diffie-Hellman

Options :
  • -out
  • 2048
  • 4096
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
Description :

Génère une CSR (Certificate Signing Request)

Options :
  • -new
  • -newkey
  • -nodes
  • -keyout
  • -out
  • -subj
  • -days
  • -x509
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout server.key -out server.crt
Description :

Génère un certificat auto-signé

Options :
  • -x509
  • -nodes
  • -days
  • -newkey
  • -keyout
  • -out
certbot --nginx -d example.com -d www.example.com
Description :

Obtient un certificat Let's Encrypt avec Certbot

Options :
  • --nginx
  • -d
  • --email
  • --agree-tos
  • --non-interactive
  • --redirect ⚠️
  • --staging
  • --dry-run ⚠️
  • --expand
  • --renew-by-default ⚠️
  • --force-renewal ⚠️
  • --test-cert
certbot --nginx -d example.com --dry-run
Description :

Teste l'obtention du certificat (dry run)

Options :
  • --dry-run ⚠️
certbot renew
Description :

Renouvelle tous les certificats

Options :
  • --dry-run ⚠️
  • --force-renewal ⚠️
  • --quiet
  • --post-hook
certbot renew --post-hook "nginx -s reload"
Description :

Renouvelle et recharge Nginx

Options :
  • --post-hook
certbot certificates
Description :

Liste les certificats gérés par Certbot

certbot delete --cert-name example.com
Description :

Supprime un certificat

Options :
  • --cert-name
certbot revoke --cert-path /etc/letsencrypt/live/example.com/cert.pem
Description :

Révoque un certificat

Options :
  • --cert-path
  • --key-path
  • --reason ⚠️
certbot enhance --nginx -d example.com
Description :

Améliore la configuration SSL (HSTS, OCSP, etc.)

Options :
  • --nginx
  • -d
certbot install --cert-name example.com
Description :

Installe un certificat existant

Options :
  • --cert-name
certbot register --email admin@example.com --agree-tos
Description :

Enregistre un compte Let's Encrypt

Options :
  • --email
  • --agree-tos
  • --no-eff-email
  • --eff-email
certbot unregister
Description :

Désenregistre le compte Let's Encrypt

certbot update_account --email new@example.com
Description :

Met à jour l'email du compte

Options :
  • --email
certbot config_changes --num 5
Description :

Affiche les 5 derniers changements de configuration

Options :
  • --num
certbot rollback --checkpoint 5
Description :

Revient à une configuration précédente

Options :
  • --checkpoint
certbot-plugin-gandi
Description :

Plugin Certbot pour Gandi DNS

Options :
  • --dns-gandi
  • --dns-gandi-credentials
certbot certonly --dns-cloudflare --dns-cloudflare-credentials /path/to/credentials.ini -d example.com
Description :

Certificat via DNS Cloudflare

Options :
  • certonly
  • --dns-cloudflare
  • --dns-cloudflare-credentials
certbot certonly --standalone -d example.com
Description :

Certificat en mode standalone (serveur temporaire)

Options :
  • certonly
  • --standalone
  • --standalone-supported-challenges
certbot certonly --webroot -w /var/www/html -d example.com
Description :

Certificat via webroot

Options :
  • certonly
  • --webroot
  • -w
certbot certonly --manual -d example.com
Description :

Certificat en mode manuel

Options :
  • certonly
  • --manual
  • --manual-auth-hook
  • --manual-cleanup-hook
certbot certonly --dns-route53 -d example.com
Description :

Certificat via DNS AWS Route53

Options :
  • certonly
  • --dns-route53 ⚠️
certbot certonly --dns-google -d example.com
Description :

Certificat via DNS Google Cloud

Options :
  • certonly
  • --dns-google
  • --dns-google-credentials
certbot certonly --dns-digitalocean -d example.com
Description :

Certificat via DNS DigitalOcean

Options :
  • certonly
  • --dns-digitalocean
  • --dns-digitalocean-credentials
certbot certonly --dns-linode -d example.com
Description :

Certificat via DNS Linode

Options :
  • certonly
  • --dns-linode
  • --dns-linode-credentials
certbot certonly --dns-ovh -d example.com
Description :

Certificat via DNS OVH

Options :
  • certonly
  • --dns-ovh
  • --dns-ovh-credentials
certbot certonly --preferred-challenges dns -d example.com
Description :

Préfère le challenge DNS

Options :
  • --preferred-challenges
certbot certonly --rsa-key-size 4096 -d example.com
Description :

Utilise une clé RSA 4096 bits

Options :
  • --rsa-key-size ⚠️
  • --key-type
certbot certonly --key-type ecdsa -d example.com
Description :

Utilise une clé ECDSA

Options :
  • --key-type
certbot certonly --elliptic-curve secp384r1 -d example.com
Description :

Spécifie la courbe elliptique

Options :
  • --elliptic-curve
certbot certonly --must-staple -d example.com
Description :

Ajoute l'extension OCSP Must-Staple

Options :
  • --must-staple
certbot certonly --reuse-key -d example.com
Description :

Réutilise la clé existante lors du renouvellement

Options :
  • --reuse-key ⚠️
certbot certonly --no-random-sleep-on-renew
Description :

Désactive la pause aléatoire au renouvellement

Options :
  • --no-random-sleep-on-renew ⚠️
certbot certonly --allow-subset-of-names -d example.com,www.example.com
Description :

Autorise un sous-ensemble de noms

Options :
  • --allow-subset-of-names
certbot certonly --keep-until-expiring -d example.com
Description :

Garde le certificat jusqu'à expiration

Options :
  • --keep-until-expiring
  • --keep
  • --renew-with-new-domains ⚠️
certbot certonly --force-renewal -d example.com
Description :

Force le renouvellement

Options :
  • --force-renewal ⚠️
certbot certonly --break-my-certs -d example.com
Description :

Force le renouvellement même si cassé

Options :
  • --break-my-certs
certbot certonly --test-cert -d example.com
Description :

Utilise le serveur de test (staging)

Options :
  • --test-cert
  • --staging
certbot certonly --server https://acme-v02.api.letsencrypt.org/directory
Description :

Spécifie le serveur ACME

Options :
  • --server
certbot certonly --eab-kid <kid> --eab-hmac-key <key>
Description :

Utilise l'authentification External Account Binding

Options :
  • --eab-kid
  • --eab-hmac-key
certbot certonly --user-agent "MyAgent/1.0"
Description :

Personnalise le User-Agent

Options :
  • --user-agent
certbot certonly --max-log-backups 5
Description :

Nombre de sauvegardes de logs

Options :
  • --max-log-backups
certbot certonly --logs-dir /custom/logs
Description :

Dossier personnalisé pour les logs

Options :
  • --logs-dir
certbot certonly --config-dir /custom/config
Description :

Dossier de configuration personnalisé

Options :
  • --config-dir
certbot certonly --work-dir /custom/work
Description :

Dossier de travail personnalisé

Options :
  • --work-dir
certbot certonly --http-01-port 8080
Description :

Port personnalisé pour le challenge HTTP-01

Options :
  • --http-01-port
certbot certonly --http-01-address 0.0.0.0
Description :

Adresse d'écoute pour le challenge HTTP-01

Options :
  • --http-01-address
certbot certonly --tls-sni-01-port 8443
Description :

Port pour le challenge TLS-SNI-01 (déprécié)

Options :
  • --tls-sni-01-port
certbot certonly --preferred-chain "ISRG Root X1"
Description :

Chaîne de certificats préférée

Options :
  • --preferred-chain
certbot certonly --deploy-hook "nginx -s reload"
Description :

Hook exécuté après déploiement réussi

Options :
  • --deploy-hook
certbot certonly --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
Description :

Hooks avant/après renouvellement

Options :
  • --pre-hook
  • --post-hook
certbot certonly --renew-hook "nginx -s reload"
Description :

Hook exécuté après renouvellement

Options :
  • --renew-hook ⚠️
certbot certonly --manual-auth-hook /path/to/auth.sh --manual-cleanup-hook /path/to/cleanup.sh
Description :

Hooks pour validation manuelle

Options :
  • --manual-auth-hook
  • --manual-cleanup-hook
certbot certonly --installer nginx
Description :

Spécifie l'installer Nginx

Options :
  • --installer
certbot certonly --authenticator standalone
Description :

Spécifie l'authenticator

Options :
  • --authenticator
certbot certonly --nginx-ctl /usr/local/nginx/sbin/nginx
Description :

Chemin personnalisé vers l'exécutable Nginx

Options :
  • --nginx-ctl
certbot certonly --nginx-server-root /custom/conf.d
Description :

Dossier de configuration Nginx personnalisé

Options :
  • --nginx-server-root ⚠️
certbot certonly --nginx-sleep-seconds 1
Description :

Délai après rechargement Nginx

Options :
  • --nginx-sleep-seconds
certbot renew --dry-run
Description :

Teste le renouvellement

Options :
  • --dry-run ⚠️
certbot renew --force-renewal
Description :

Force le renouvellement de tous les certificats

Options :
  • --force-renewal ⚠️
certbot renew --cert-name example.com
Description :

Renouvelle un certificat spécifique

Options :
  • --cert-name
certbot renew --no-random-sleep-on-renew
Description :

Sans pause aléatoire

Options :
  • --no-random-sleep-on-renew ⚠️
certbot renew --disable-hook-validation
Description :

Désactive la validation des hooks

Options :
  • --disable-hook-validation
certbot renew --break-my-certs
Description :

Force le renouvellement même si cassé

Options :
  • --break-my-certs
certbot revoke --cert-name example.com --reason keycompromise
Description :

Révoque un certificat (raison: compromission)

Options :
  • --cert-name
  • --reason ⚠️
certbot revoke --cert-path /path/to/cert.pem --key-path /path/to/key.pem --no-delete-after-revoke
Description :

Révoque sans supprimer les fichiers

Options :
  • --cert-path
  • --key-path
  • --no-delete-after-revoke ⚠️
certbot delete --cert-name example.com
Description :

Supprime un certificat

Options :
  • --cert-name
certbot unregister --email admin@example.com
Description :

Désenregistre un compte

Options :
  • --email
certbot register --update-registration --email new@example.com
Description :

Met à jour l'email d'enregistrement

Options :
  • --update-registration ⚠️
  • --email
certbot plugins
Description :

Liste les plugins disponibles

Options :
  • --init
  • --prepare
  • --authenticators
  • --installers
certbot config_changes --num 10
Description :

Affiche les 10 derniers changements

Options :
  • --num
certbot rollback --checkpoint 3
Description :

Revient au checkpoint 3

Options :
  • --checkpoint
certbot show_account
Description :

Affiche les détails du compte

certbot certonly --csr /path/to/domain.csr
Description :

Utilise une CSR existante

Options :
  • --csr
certbot certonly --fullchain-path /path/to/fullchain.pem --chain-path /path/to/chain.pem --key-path /path/to/privkey.pem
Description :

Chemins personnalisés pour les fichiers

Options :
  • --fullchain-path ⚠️
  • --chain-path
  • --key-path
certbot certonly --duplicate
Description :

Crée un certificat en double

Options :
  • --duplicate
certbot certonly --force-renewal --no-random-sleep-on-renew
Description :

Renouvellement forcé sans pause

Options :
  • --force-renewal ⚠️
  • --no-random-sleep-on-renew ⚠️
certbot certonly --quiet
Description :

Mode silencieux

Options :
  • --quiet
  • -q
certbot certonly --non-interactive
Description :

Mode non interactif

Options :
  • --non-interactive
  • -n
certbot certonly --agree-tos --email admin@example.com --non-interactive
Description :

Accepte les conditions automatiquement

Options :
  • --agree-tos
  • --email
  • --non-interactive
certbot certonly --no-eff-email
Description :

Ne partage pas l'email avec l'EFF

Options :
  • --no-eff-email
  • --eff-email
certbot certonly --verbose
Description :

Mode verbeux

Options :
  • --verbose
  • -v
certbot certonly --debug
Description :

Mode debug

Options :
  • --debug
certbot certonly --config /custom/cli.ini
Description :

Fichier de configuration personnalisé

Options :
  • --config
certbot certonly --user-agent "MyCustomAgent/2.0"
Description :

User-Agent personnalisé

Options :
  • --user-agent
certbot certonly --http-01-port 80 --tls-sni-01-port 443
Description :

Ports personnalisés pour les challenges

Options :
  • --http-01-port
  • --tls-sni-01-port
certbot certonly --domain example.com --domain www.example.com --domain api.example.com
Description :

Plusieurs domaines dans un certificat

Options :
  • -d
  • --domain
certbot certonly -d "*.example.com" -d example.com --dns-cloudflare
Description :

Certificat wildcard (*.example.com)

Options :
  • -d
  • --dns-cloudflare
certbot certonly -d example.com --register-unsafely-without-email
Description :

Enregistrement sans email (déconseillé)

Options :
  • --register-unsafely-without-email ⚠️
certbot renew --cert-name example.com --deploy-hook "nginx -s reload"
Description :

Renouvelle et recharge Nginx

Options :
  • --cert-name
  • --deploy-hook
certbot renew --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"
Description :

Arrête/redémarre Nginx pendant le renouvellement

Options :
  • --pre-hook
  • --post-hook
certbot renew --renew-hook "/usr/local/bin/renew-notify.sh"
Description :

Hook personnalisé après renouvellement

Options :
  • --renew-hook ⚠️
certbot renew --no-self-upgrade
Description :

Désactive l'auto-mise à jour de Certbot

Options :
  • --no-self-upgrade
certbot renew --max-log-backups 10
Description :

Conserve 10 sauvegardes de logs

Options :
  • --max-log-backups
certbot certonly --keep --renew-with-new-domains -d example.com -d new.example.com
Description :

Garde le certificat existant et ajoute un domaine

Options :
  • --keep
  • --renew-with-new-domains ⚠️
certbot certonly --allow-subset-of-names -d example.com,www.example.com,api.example.com
Description :

Autorise un sous-ensemble de domaines validés

Options :
  • --allow-subset-of-names
certbot certonly --preferred-challenges dns-01
Description :

Préfère le challenge DNS-01

Options :
  • --preferred-challenges
certbot certonly --preferred-challenges http-01,tls-alpn-01
Description :

Plusieurs challenges préférés

Options :
  • --preferred-challenges
certbot certonly --validate-hooks
Description :

Valide les hooks avant exécution

Options :
  • --validate-hooks
certbot certonly --disable-hook-validation
Description :

Désactive la validation des hooks

Options :
  • --disable-hook-validation
certbot certonly --staple-ocsp
Description :

Active l'agrafage OCSP

Options :
  • --staple-ocsp
certbot certonly --must-staple
Description :

Exige l'agrafage OCSP

Options :
  • --must-staple
certbot certonly --reuse-key
Description :

Réutilise la clé existante

Options :
  • --reuse-key ⚠️
certbot certonly --new-key
Description :

Génère une nouvelle clé (par défaut)

Options :
  • --new-key
certbot certonly --key-type rsa --rsa-key-size 3072
Description :

Clé RSA 3072 bits

Options :
  • --key-type
  • --rsa-key-size ⚠️
certbot certonly --key-type ecdsa --elliptic-curve secp256r1
Description :

Clé ECDSA avec courbe P-256

Options :
  • --key-type
  • --elliptic-curve
certbot certonly --elliptic-curve secp384r1
Description :

Courbe P-384

Options :
  • --elliptic-curve
certbot certonly --key-type ed25519
Description :

Clé Ed25519

Options :
  • --key-type
certbot certonly --chain "ISRG Root X1"
Description :

Chaîne de certificats préférée

Options :
  • --chain
certbot certonly --no-directory-hooks
Description :

Désactive les hooks par répertoire

Options :
  • --no-directory-hooks
certbot certonly --directory-hooks
Description :

Active les hooks par répertoire (défaut)

Options :
  • --directory-hooks
certbot certonly --no-autorenew
Description :

Désactive le renouvellement automatique

Options :
  • --no-autorenew
certbot certonly --autorenew
Description :

Active le renouvellement automatique (défaut)

Options :
  • --autorenew
certbot certonly --no-redirect
Description :

Désactive la redirection HTTP vers HTTPS

Options :
  • --no-redirect ⚠️
certbot certonly --redirect
Description :

Active la redirection HTTP vers HTTPS

Options :
  • --redirect ⚠️
certbot certonly --no-ask-enter --non-interactive --agree-tos --email admin@example.com -d example.com
Description :

Commande complète non interactive

Options :
  • --no-ask-enter
  • --non-interactive
  • --agree-tos
  • --email
  • -d

Partager