add tls-sni and remove webroot

for ppl which only wants to open port 443
This commit is contained in:
Daniel Hansson 2018-12-07 20:35:55 +01:00 коммит произвёл GitHub
Родитель 4907b26b60
Коммит e19ef1c4bd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -217,8 +217,8 @@ else
echo "fail" > /tmp/le_test
fi
}
webroot() {
if eval "certbot certonly --webroot --webroot-path $NCPATH $default_le"
tls-sni() {
if eval "certbot certonly --preferred-challenges tls-sni $default_le"
then
echo "success" > /tmp/le_test
else
@ -234,7 +234,7 @@ else
fi
}
methods=(standalone webroot dns)
methods=(standalone tls-sni dns)
create_config() {
# $1 = method
@ -259,7 +259,7 @@ if [ "$method" == "standalone" ]
then
printf "%b" "${ICyan}It seems like no certs were generated, we will do 2 more tries.\n${Color_Off}"
any_key "Press any key to continue..."
elif [ "$method" == "webroot" ]
elif [ "$method" == "tls-sni" ]
then
printf "%b" "${ICyan}It seems like no certs were generated, we will do 1 more tries.\n${Color_Off}"
any_key "Press any key to continue..."