Commit 63a3c75e authored by Daniel STAN's avatar Daniel STAN

le certif contient aussi le hostname de la machine

parent 139ec4f0
#!/bin/bash
DOMAINS="-d www.tudo.re -d cloud.tudo.re -d rc.tudo.re -d imap.tudo.re"
DIR=/tmp/letsencrypt-auto
letsencrypt=/usr/bin/certbot
if [ ! -x "$letsencrypt" ]; then
letsencrypt=/home/dstan/letsencrypt/letsencrypt-auto
fi
export DOMAINS="-d www.tudo.re -d cloud.tudo.re -d rc.tudo.re -d imap.tudo.re"
export DIR=/tmp/letsencrypt-auto
case $(/bin/hostname) in
gladys)
DOMAINS="$DOMAINS -d home.b2moo.fr"
;;
kugel)
DOMAINS="$DOMAINS -d kugel.tudo.re"
;;
esac
mkdir -p $DIR
$letsencrypt certonly -a webroot --webroot-path=$DIR $DOMAINS
#$letsencrypt renew -a webroot --webroot-path=$DIR $DOMAINS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment