diff --git a/files/apache-keystone.template b/files/apache-keystone.template index 428544f25c..84dc273200 100644 --- a/files/apache-keystone.template +++ b/files/apache-keystone.template @@ -34,6 +34,12 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" %SSLKEYFILE% +%SSLLISTEN% +%SSLLISTEN% %SSLENGINE% +%SSLLISTEN% %SSLCERTFILE% +%SSLLISTEN% %SSLKEYFILE% +%SSLLISTEN% + Alias /identity %KEYSTONE_BIN%/keystone-wsgi-public SetHandler wsgi-script diff --git a/lib/keystone b/lib/keystone index 948d5b4885..fd1d1d4a61 100644 --- a/lib/keystone +++ b/lib/keystone @@ -153,6 +153,7 @@ function cleanup_keystone { function _config_keystone_apache_wsgi { local keystone_apache_conf keystone_apache_conf=$(apache_site_config_for keystone) + keystone_ssl_listen="#" local keystone_ssl="" local keystone_certfile="" local keystone_keyfile="" @@ -161,6 +162,7 @@ function _config_keystone_apache_wsgi { local venv_path="" if is_ssl_enabled_service key; then + keystone_ssl_listen="" keystone_ssl="SSLEngine On" keystone_certfile="SSLCertificateFile $KEYSTONE_SSL_CERT" keystone_keyfile="SSLCertificateKeyFile $KEYSTONE_SSL_KEY" @@ -178,6 +180,7 @@ function _config_keystone_apache_wsgi { s|%PUBLICPORT%|$keystone_service_port|g; s|%ADMINPORT%|$keystone_auth_port|g; s|%APACHE_NAME%|$APACHE_NAME|g; + s|%SSLLISTEN%|$keystone_ssl_listen|g; s|%SSLENGINE%|$keystone_ssl|g; s|%SSLCERTFILE%|$keystone_certfile|g; s|%SSLKEYFILE%|$keystone_keyfile|g;