autotests: Test loading binary key formats in testEAP-TLS
This commit is contained in:
parent
84cae48c1b
commit
6fdae0c4eb
Binary file not shown.
Binary file not shown.
|
@ -66,11 +66,15 @@ class Test(unittest.TestCase):
|
||||||
def test_eap_tls3(self):
|
def test_eap_tls3(self):
|
||||||
self.do_test_connection_success('ssidEAP-TLS3', 'abc')
|
self.do_test_connection_success('ssidEAP-TLS3', 'abc')
|
||||||
|
|
||||||
|
def test_eap_tls4(self):
|
||||||
|
self.do_test_connection_success('ssidEAP-TLS4')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_storage('ssidEAP-TLS.8021x')
|
IWD.copy_to_storage('ssidEAP-TLS.8021x')
|
||||||
IWD.copy_to_storage('ssidEAP-TLS2.8021x')
|
IWD.copy_to_storage('ssidEAP-TLS2.8021x')
|
||||||
IWD.copy_to_storage('ssidEAP-TLS3.8021x')
|
IWD.copy_to_storage('ssidEAP-TLS3.8021x')
|
||||||
|
IWD.copy_to_storage('ssidEAP-TLS4.8021x')
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
[SETUP]
|
[SETUP]
|
||||||
num_radios=4
|
num_radios=5
|
||||||
tmpfs_extra_stuff=../misc/certs
|
tmpfs_extra_stuff=../misc/certs
|
||||||
|
|
||||||
[HOSTAPD]
|
[HOSTAPD]
|
||||||
rad0=ssidEAP-TLS.conf
|
rad0=ssidEAP-TLS.conf
|
||||||
rad1=ssidEAP-TLS2.conf
|
rad1=ssidEAP-TLS2.conf
|
||||||
rad2=ssidEAP-TLS3.conf
|
rad2=ssidEAP-TLS3.conf
|
||||||
|
rad3=ssidEAP-TLS4.conf
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[Security]
|
[Security]
|
||||||
EAP-Method=TLS
|
EAP-Method=TLS
|
||||||
EAP-TLS-CACert=/tmp/certs/cert-ca.pem
|
EAP-TLS-CACert=/tmp/certs/cert-ca.pem
|
||||||
EAP-TLS-ClientCert=/tmp/certs/cert-client.pem
|
EAP-TLS-ClientCert=/tmp/certs/cert-client.crt
|
||||||
EAP-TLS-ClientKey=/tmp/certs/cert-client-key-v2-des-ede3.pem
|
EAP-TLS-ClientKey=/tmp/certs/cert-client-key-v2-des-ede3.pem
|
||||||
EAP-Identity=abc@example.com
|
EAP-Identity=abc@example.com
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Security]
|
||||||
|
EAP-Method=TLS
|
||||||
|
EAP-TLS-CACert=/tmp/certs/cert-ca.pem
|
||||||
|
EAP-TLS-ClientKeyBundle=/tmp/certs/cert-client.p12
|
||||||
|
EAP-TLS-ClientKeyPassphrase=abc
|
||||||
|
EAP-Identity=abc@example.com
|
||||||
|
|
||||||
|
[Settings]
|
||||||
|
AutoConnect=False
|
|
@ -0,0 +1,13 @@
|
||||||
|
ctrl_interface=/var/run/hostapd
|
||||||
|
hw_mode=g
|
||||||
|
channel=4
|
||||||
|
ssid=ssidEAP-TLS4
|
||||||
|
|
||||||
|
wpa=3
|
||||||
|
wpa_key_mgmt=WPA-EAP
|
||||||
|
ieee8021x=1
|
||||||
|
eap_server=1
|
||||||
|
eap_user_file=/tmp/certs/eap-user-tls.text
|
||||||
|
ca_cert=/tmp/certs/cert-ca.pem
|
||||||
|
server_cert=/tmp/certs/cert-server.pem
|
||||||
|
private_key=/tmp/certs/cert-server-key.pem
|
Loading…
Reference in New Issue