Skip to content

Commit df86662

Browse files
authored
Merge pull request hestiacp#2197 from jaapmarcus/fix/le-host-error
hestiacp#2195 Fix v-add-letsencrypt-host error
2 parents 75455d7 + 0fa71ca commit df86662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-letsencrypt-host

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ add_ssl="yes"
6767
if [ "$SSL" = "yes" ]; then
6868
# Valildate SSL Certificate
6969
if [ -e "$USER_DATA/ssl/$domain.ca" ]; then
70-
if openssl verify -CAfile $USER_DATA/ssl/$domain.ca $USER_DATA/ssl/$domain.pem | grep -q "$domain.pem: OK"; then
70+
if openssl verify -CAfile <(openssl x509 -in $USER_DATA/ssl/$domain.ca) $USER_DATA/ssl/$domain.pem | grep -q "$domain.pem: OK"; then
7171
add_ssl="no"
7272
fi
7373
else

0 commit comments

Comments
 (0)