mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-30 19:54:09 +01:00
autotests: Test loading binary key formats in testEAP-TLS
This commit is contained in:
parent
84cae48c1b
commit
6fdae0c4eb
BIN
autotests/misc/certs/cert-client.crt
Normal file
BIN
autotests/misc/certs/cert-client.crt
Normal file
Binary file not shown.
BIN
autotests/misc/certs/cert-client.p12
Normal file
BIN
autotests/misc/certs/cert-client.p12
Normal file
Binary file not shown.
@ -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):
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
9
autotests/testEAP-TLS/ssidEAP-TLS4.8021x
Normal file
9
autotests/testEAP-TLS/ssidEAP-TLS4.8021x
Normal 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
|
13
autotests/testEAP-TLS/ssidEAP-TLS4.conf
Normal file
13
autotests/testEAP-TLS/ssidEAP-TLS4.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user