Merge "Fix the amqp1 SSL test CA certificate"
This commit is contained in:
commit
5e194ca77a
@ -1472,11 +1472,10 @@ class TestSSL(test_utils.BaseTestCase):
|
|||||||
conf['c_name'] = 'client.com'
|
conf['c_name'] = 'client.com'
|
||||||
self._ssl_config = conf
|
self._ssl_config = conf
|
||||||
ssl_setup = [
|
ssl_setup = [
|
||||||
# create self-signed CA key and certificate:
|
# create self-signed CA certificate:
|
||||||
Template('openssl genrsa -out ${ca_key} 2048').substitute(conf),
|
Template('openssl req -x509 -nodes -newkey rsa:2048'
|
||||||
Template('openssl req -x509 -key ${ca_key} -subj'
|
' -subj "/CN=Trusted.CA.com" -keyout ${ca_key}'
|
||||||
' "/CN=Trusted.CA.com" -out'
|
' -out ${ca_cert}').substitute(conf),
|
||||||
' ${ca_cert}').substitute(conf),
|
|
||||||
# create Server key and certificate:
|
# create Server key and certificate:
|
||||||
Template('openssl genrsa -out ${s_key} 2048').substitute(conf),
|
Template('openssl genrsa -out ${s_key} 2048').substitute(conf),
|
||||||
Template('openssl req -new -key ${s_key} -subj /CN=${s_name}'
|
Template('openssl req -new -key ${s_key} -subj /CN=${s_name}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user