Skip to content

Commit bd24bb6

Browse files
author
Daniel Hansson
authored
change to DNS challange instead of certonly (#496)
1 parent 51e88cc commit bd24bb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lets-encrypt/activate-ssl.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,16 @@ else
196196
echo "fail" > /tmp/le_test
197197
fi
198198
}
199-
certonly() {
200-
if eval "certbot certonly $default_le"
199+
dns() {
200+
if eval "certbot --manual --preferred-challenges dns certonly $default_le"
201201
then
202202
echo "success" > /tmp/le_test
203203
else
204204
echo "fail" > /tmp/le_test
205205
fi
206206
}
207207

208-
methods=(standalone webroot certonly)
208+
methods=(standalone webroot dns)
209209

210210
create_config() {
211211
# $1 = method
@@ -234,7 +234,7 @@ elif [ "$method" == "webroot" ]
234234
then
235235
printf "${ICyan}It seems like no certs were generated, we will do 1 more try.${Color_Off}\n"
236236
any_key "Press any key to continue..."
237-
elif [ "$method" == "certonly" ]
237+
elif [ "$method" == "dns" ]
238238
then
239239
printf "${ICyan}It seems like no certs were generated, we will do 0 more tries.${Color_Off}\n"
240240
any_key "Press any key to continue..."

0 commit comments

Comments
 (0)