Merge "Allow IP-based subject alt names"
This commit is contained in:
commit
d3b41b528d
6
lib/tls
6
lib/tls
@ -249,7 +249,11 @@ function make_cert {
|
||||
|
||||
if [ "$common_name" != "$SERVICE_HOST" ]; then
|
||||
if is_ipv4_address "$SERVICE_HOST" ; then
|
||||
alt_names="$alt_names,IP:$SERVICE_HOST"
|
||||
if [[ -z "$alt_names" ]]; then
|
||||
alt_names="IP:$SERVICE_HOST"
|
||||
else
|
||||
alt_names="$alt_names,IP:$SERVICE_HOST"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user