Explorar o código

feat(www): adds subjectAltName to self-signed "autocert" certs

(This is relevant for development/testing only.)
Nils Wisiol %!s(int64=4) %!d(string=hai) anos
pai
achega
45a721672f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      www/entrypoint.sh

+ 2 - 1
www/entrypoint.sh

@@ -44,7 +44,8 @@ if [ ! -z "$FILES_MISSING" ] ; then
                 -x509 \
                 -days 1\
                 -out $DOMAIN.cer \
-                -subj "/C=DE/ST=Berlin/L=Berlin/O=deSEC/OU=autocert/CN=$DOMAIN"
+                -subj "/C=DE/ST=Berlin/L=Berlin/O=deSEC/OU=autocert/CN=$DOMAIN" \
+                -addext "subjectAltName = DNS:$DOMAIN"
 
         done