test_tls_sni.py (1984:06514cd08a35) test_tls_sni.py (2004:ca4c5855f139)
1import ssl
2import subprocess
3
4from unit.applications.tls import TestApplicationTLS
5from unit.option import option
6
7
8class TestTLSSNI(TestApplicationTLS):

--- 60 unchanged lines hidden (view full) ---

69 for b in bundles:
70 self.openssl_conf(rewrite=True, alt_names=bundles[b]['alt_names'])
71 subj = (
72 '/CN={}/'.format(bundles[b]['subj'])
73 if 'subj' in bundles[b]
74 else '/'
75 )
76
1import ssl
2import subprocess
3
4from unit.applications.tls import TestApplicationTLS
5from unit.option import option
6
7
8class TestTLSSNI(TestApplicationTLS):

--- 60 unchanged lines hidden (view full) ---

69 for b in bundles:
70 self.openssl_conf(rewrite=True, alt_names=bundles[b]['alt_names'])
71 subj = (
72 '/CN={}/'.format(bundles[b]['subj'])
73 if 'subj' in bundles[b]
74 else '/'
75 )
76
77 subprocess.call(
77 subprocess.check_output(
78 [
79 'openssl',
80 'req',
81 '-new',
82 '-subj',
83 subj,
84 '-config',
85 option.temp_dir + '/openssl.conf',

--- 9 unchanged lines hidden (view full) ---

95
96 for b in bundles:
97 subj = (
98 '/CN={}/'.format(bundles[b]['subj'])
99 if 'subj' in bundles[b]
100 else '/'
101 )
102
78 [
79 'openssl',
80 'req',
81 '-new',
82 '-subj',
83 subj,
84 '-config',
85 option.temp_dir + '/openssl.conf',

--- 9 unchanged lines hidden (view full) ---

95
96 for b in bundles:
97 subj = (
98 '/CN={}/'.format(bundles[b]['subj'])
99 if 'subj' in bundles[b]
100 else '/'
101 )
102
103 subprocess.call(
103 subprocess.check_output(
104 [
105 'openssl',
106 'ca',
107 '-batch',
108 '-subj',
109 subj,
110 '-config',
111 option.temp_dir + '/ca.conf',

--- 183 unchanged lines hidden ---
104 [
105 'openssl',
106 'ca',
107 '-batch',
108 '-subj',
109 subj,
110 '-config',
111 option.temp_dir + '/ca.conf',

--- 183 unchanged lines hidden ---