commit 6fdae0c4ebc9c2d0b2a92cf333e855524f633554
parent 84cae48c1bfe374c8654b23ad4e766548b9203a7
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Mon, 25 Jan 2021 18:56:13 +0100
autotests: Test loading binary key formats in testEAP-TLS
Diffstat:
7 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/autotests/misc/certs/cert-client.crt b/autotests/misc/certs/cert-client.crt
Binary files differ.
diff --git a/autotests/misc/certs/cert-client.p12 b/autotests/misc/certs/cert-client.p12
Binary files differ.
diff --git a/autotests/testEAP-TLS/connection_test.py b/autotests/testEAP-TLS/connection_test.py
@@ -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):
diff --git a/autotests/testEAP-TLS/hw.conf b/autotests/testEAP-TLS/hw.conf
@@ -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
diff --git a/autotests/testEAP-TLS/ssidEAP-TLS3.8021x b/autotests/testEAP-TLS/ssidEAP-TLS3.8021x
@@ -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
diff --git a/autotests/testEAP-TLS/ssidEAP-TLS4.8021x b/autotests/testEAP-TLS/ssidEAP-TLS4.8021x
@@ -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
diff --git a/autotests/testEAP-TLS/ssidEAP-TLS4.conf b/autotests/testEAP-TLS/ssidEAP-TLS4.conf
@@ -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