« Unix::certificat SSL pour https » : différence entre les versions
De wiki_pcwiki2
Aller à la navigationAller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
| Ligne 2 : | Ligne 2 : | ||
'''Le 28/11/2022:''' | '''Le 28/11/2022:''' | ||
<nowiki> | |||
strDomain="voilou.nl" | strDomain="voilou.nl" | ||
Version du 28 novembre 2022 à 15:29
KEYWORDS: CERTIFICAT, SSL, CERTBOT, HTTPS
Le 28/11/2022:
strDomain="voilou.nl"
test -d /var/www/html/${strDomain}
if test $? -ne 0
then
mkdir -p /var/www/html/${strDomain}
fi
certbot certonly --force-renew --webroot -w /var/www/html/${strDomain} -d ${strDomain},www.${strDomain} --post-hook="apache2ctl configtest && service apache2 reload"