Skip to content

Commit 0fe25e3

Browse files
juliakregerdtantsur
authored andcommitted
Add the IPv6 IP to the TLS cert
For some crazy reason, we've forgotten about trying to use IPv6 addresses directly with the SSL certificates. So lets add some logic so clients can connect directly with the v6 IP. Change-Id: Ie8b8a2d99945f028bebe805b83bfd863b7b72d57
1 parent f7302e1 commit 0fe25e3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/tls

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ function init_cert {
234234
# see https://bugs.python.org/issue23239
235235
TLS_IP="DNS:$TLS_IP,IP:$TLS_IP"
236236
fi
237+
if [[ -n "$HOST_IPV6" ]]; then
238+
TLS_IP="$TLS_IP,IP:$HOST_IPV6"
239+
fi
237240
fi
238241
make_cert $INT_CA_DIR $DEVSTACK_CERT_NAME $DEVSTACK_HOSTNAME "$TLS_IP"
239242

0 commit comments

Comments
 (0)