Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@techandme.se>2018-03-17 19:56:45 +0300
committerGitHub <noreply@github.com>2018-03-17 19:56:45 +0300
commitbd24bb69ac58ae5543c37db5a211cc780215bf47 (patch)
tree5a0ee74d3c7ba8007470ef627a6e88c3951fd518
parent51e88cc752c5adc9fb20c522f69d99c42ac8352d (diff)
change to DNS challange instead of certonly (#496)13.0.1
-rw-r--r--lets-encrypt/activate-ssl.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lets-encrypt/activate-ssl.sh b/lets-encrypt/activate-ssl.sh
index 71c6abe4..0a12ed4d 100644
--- a/lets-encrypt/activate-ssl.sh
+++ b/lets-encrypt/activate-ssl.sh
@@ -196,8 +196,8 @@ else
echo "fail" > /tmp/le_test
fi
}
-certonly() {
-if eval "certbot certonly $default_le"
+dns() {
+if eval "certbot --manual --preferred-challenges dns certonly $default_le"
then
echo "success" > /tmp/le_test
else
@@ -205,7 +205,7 @@ else
fi
}
-methods=(standalone webroot certonly)
+methods=(standalone webroot dns)
create_config() {
# $1 = method
@@ -234,7 +234,7 @@ elif [ "$method" == "webroot" ]
then
printf "${ICyan}It seems like no certs were generated, we will do 1 more try.${Color_Off}\n"
any_key "Press any key to continue..."
-elif [ "$method" == "certonly" ]
+elif [ "$method" == "dns" ]
then
printf "${ICyan}It seems like no certs were generated, we will do 0 more tries.${Color_Off}\n"
any_key "Press any key to continue..."