Correct subjectAltName errors in server sign

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2017-12-24 10:00:20 -06:00
parent 0933b898b3
commit b3ed48042e
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -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: