diff options
author | Kenneth Giusti <kgiusti@gmail.com> | 2017-05-12 13:12:48 -0400 |
---|---|---|
committer | Kenneth Giusti <kgiusti@gmail.com> | 2017-05-12 13:12:48 -0400 |
commit | 12dafbb752e77ff2df5308b086a88324277f9470 (patch) | |
tree | 8294e715e95691404977c592b24063d50af72ebc | |
parent | e569c92cd9d17c907ecc35e24c50c49717844bde (diff) | |
download | oslo-messaging-12dafbb752e77ff2df5308b086a88324277f9470.tar.gz |
Fix the amqp1 SSL test CA certificate
The certificate was not being generated correctly on xenial.
Change-Id: I997d89d614957b2fb39256e98e62b68e034f09f1
-rw-r--r-- | oslo_messaging/tests/drivers/test_amqp_driver.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/oslo_messaging/tests/drivers/test_amqp_driver.py b/oslo_messaging/tests/drivers/test_amqp_driver.py index 9f7b2a5..6609dea 100644 --- a/oslo_messaging/tests/drivers/test_amqp_driver.py +++ b/oslo_messaging/tests/drivers/test_amqp_driver.py @@ -1471,11 +1471,10 @@ class TestSSL(test_utils.BaseTestCase): conf['c_name'] = 'client.com' self._ssl_config = conf ssl_setup = [ - # create self-signed CA key and certificate: - Template('openssl genrsa -out ${ca_key} 2048').substitute(conf), - Template('openssl req -x509 -key ${ca_key} -subj' - ' "/CN=Trusted.CA.com" -out' - ' ${ca_cert}').substitute(conf), + # create self-signed CA certificate: + Template('openssl req -x509 -nodes -newkey rsa:2048' + ' -subj "/CN=Trusted.CA.com" -keyout ${ca_key}' + ' -out ${ca_cert}').substitute(conf), # create Server key and certificate: Template('openssl genrsa -out ${s_key} 2048').substitute(conf), Template('openssl req -new -key ${s_key} -subj /CN=${s_name}' |