diff --git a/ChangeLog b/ChangeLog index c13f11b..3eb7897 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,12 +1,13 @@ Easy-RSA 3 ChangeLog -3.0.x (TBD) +3.0.4 (TBD) * Remove use of egrep (#154) * Integrate with Travis-CI (#165) * Remove "local" from variable assignment (#165) * Other changes related to Travis-CI fixes - * Assign values (even empty ones) to variables defined previously with - "local" + * Assign values to variables defined previously w/local + * Finally(?) fix the subjectAltName issues I presented earlier (really + fixes #168 3.0.3 (2017-08-22) * Include mktemp windows binary diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index e99f6db..c81ac9a 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -652,10 +652,12 @@ $(display_dn req "$req_in") # If type is server and no subjectAltName was requested, # add one to the extensions file - if [ "$crt_type" = 'server' ]; then + if [ "$crt_type" = 'server' ]; + then + sname=$(basename $req_in | cut -d. -f1) echo "$EASYRSA_EXTRA_EXTS" | grep -q subjectAltName || - print "default_server_san $req_in" + print "subjectAltName = DNS:$sname" fi # Add any advanced extensions supplied by env-var: