Browse Source

Ensure that letsencrypt certs are not used for the local domain

Bob Mottram 6 years ago
parent
commit
4ea4d6ed5f
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-utils-web

+ 3
- 0
src/freedombone-utils-web View File

1186
         "${PROJECT_NAME}-addcert" -h "${local_hostname}" --dhkey "${DH_KEYLENGTH}"
1186
         "${PROJECT_NAME}-addcert" -h "${local_hostname}" --dhkey "${DH_KEYLENGTH}"
1187
     fi
1187
     fi
1188
 
1188
 
1189
+    sed -i "s|ssl_certificate .*|ssl_certificate /etc/ssl/certs/${local_hostname}.crt;|g" "$nginx_file"
1190
+    sed -i "s|ssl_certificate_key .*|ssl_certificate_key /etc/ssl/private/${local_hostname}.key;|g" "$nginx_file"
1191
+
1189
     nginx_ensite "${local_hostname}"
1192
     nginx_ensite "${local_hostname}"
1190
 
1193
 
1191
     # Compatibility with FreedomBox android app
1194
     # Compatibility with FreedomBox android app