From 55ae42b414a6ef41b3ba324203a86eece18a8e28 Mon Sep 17 00:00:00 2001 From: yodax Date: Fri, 28 Jul 2017 13:00:22 +0200 Subject: [PATCH] Only set the CN field to the primary hostname to prevent issues with the php7 ppa version of openssl --- setup/ssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/ssl.sh b/setup/ssl.sh index ff368049..61b0b9e5 100755 --- a/setup/ssl.sh +++ b/setup/ssl.sh @@ -74,7 +74,7 @@ if [ ! -f $STORAGE_ROOT/ssl/ssl_certificate.pem ]; then CSR=/tmp/ssl_cert_sign_req-$$.csr hide_output \ openssl req -new -key $STORAGE_ROOT/ssl/ssl_private_key.pem -out $CSR \ - -sha256 -subj "/C=/ST=/L=/O=/CN=$PRIMARY_HOSTNAME" + -sha256 -subj "/CN=$PRIMARY_HOSTNAME" # Generate the self-signed certificate. CERT=$STORAGE_ROOT/ssl/$PRIMARY_HOSTNAME-selfsigned-$(date --rfc-3339=date | sed s/-//g).pem