autotests: Test loading binary key formats in testEAP-TLS

This commit is contained in:
Andrew Zaborowski 2021-01-25 18:56:13 +01:00 committed by Denis Kenzior
parent 84cae48c1b
commit 6fdae0c4eb
7 changed files with 29 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -66,11 +66,15 @@ class Test(unittest.TestCase):
def test_eap_tls3(self):
self.do_test_connection_success('ssidEAP-TLS3', 'abc')
def test_eap_tls4(self):
self.do_test_connection_success('ssidEAP-TLS4')
@classmethod
def setUpClass(cls):
IWD.copy_to_storage('ssidEAP-TLS.8021x')
IWD.copy_to_storage('ssidEAP-TLS2.8021x')
IWD.copy_to_storage('ssidEAP-TLS3.8021x')
IWD.copy_to_storage('ssidEAP-TLS4.8021x')
@classmethod
def tearDownClass(cls):

View File

@ -1,8 +1,9 @@
[SETUP]
num_radios=4
num_radios=5
tmpfs_extra_stuff=../misc/certs
[HOSTAPD]
rad0=ssidEAP-TLS.conf
rad1=ssidEAP-TLS2.conf
rad2=ssidEAP-TLS3.conf
rad3=ssidEAP-TLS4.conf

View File

@ -1,7 +1,7 @@
[Security]
EAP-Method=TLS
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-Identity=abc@example.com

View File

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

View File

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