[SSL] fix validate_writeable_directory
We have to exmand user if ~ was used in path and we have to use normpath in order not to traverse nonexisting directory and remove trailing /. Change-Id: Ic44917b6a1e01c9565cef1df60ed57d3da39cf33
This commit is contained in:
@@ -174,7 +174,7 @@ def create_manifest(config, messages):
|
||||
ssl_key_file = '/etc/pki/tls/private/ssl_amqp.key'
|
||||
ssl_cert_file = '/etc/pki/tls/certs/ssl_amqp.crt'
|
||||
cacert = config['CONFIG_AMQP_SSL_CACERT_FILE'] = (
|
||||
config['CONFIG_SSL_CACERT_FILE']
|
||||
config['CONFIG_SSL_CACERT']
|
||||
)
|
||||
generate_ssl_cert(config, amqp_host, service, ssl_key_file,
|
||||
ssl_cert_file)
|
||||
|
||||
Reference in New Issue
Block a user