Fix the amqp1 SSL test CA certificate

The certificate was not being generated correctly on xenial.

Change-Id: I997d89d614957b2fb39256e98e62b68e034f09f1
This commit is contained in:
Kenneth Giusti 2017-05-12 13:12:48 -04:00
parent e569c92cd9
commit 12dafbb752

@ -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}'