Skip to content

Commit 67e976d

Browse files
committed
Changing the way temporary certs are generated to match new nginx configuration
1 parent 1ba4e87 commit 67e976d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

overlay/etc/ssl/inc/setup-ssl.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generate_temp_cert () {
1313
-sha256 \
1414
-days 3650 \
1515
-nodes \
16-
-out ${1}.crt \
16+
-out ${1}/fullchain.crt \
1717
-keyout ${1}.key \
1818
-subj "/C=NA/ST=NA/L=NA/O=NA/OU=NA/CN=${2}"
1919

@@ -56,6 +56,5 @@ setup_ssl () {
5656

5757
# create self-signed certificate so nginx will start before we request proper certificates
5858
generate_temp_cert ${CERT} ${DOMAIN_NAME}
59-
generate_temp_cert ${FULLCHAIN} ${DOMAIN_NAME}
6059

6160
}

overlay/etc/ssl/request

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ source ${INC}/check.sh
1616
_echo "Requesting SSL certificates..."
1717
for D in "${!DOMAINS[@]}" ; do
1818
_echo " - ${D}"
19-
/etc/ssl/getssl -U -w ${SSL_CERTS} ${D}
19+
/etc/ssl/getssl -U -w ${SSL_CERTS} ${D} || _error "Unable to request certificate for ${D}."
2020
done
2121
_done

0 commit comments

Comments
 (0)