I would like to configure an 8devices Lima device with OpenWrt 22.03.5 as a client that connects to a WPA2-EAP network via EAP-TLS. In the next step, an access point should run on the device in order to build an EAP-TLS repeater. I am using freeradius 3.0.26 running on a Ubuntu desktop machine and a another device running openwrt as accesspoint. I have already been able to successfully connect a Windows PC to the accesspoint, so I assume that the RADIUS server and the accesspoint are set correctly. When I now try to connect the OpenWRT client to the accesspoint, there are the following error messages.
wpa_supplicant[6322]: PKCS #5: Invalid PS octet 0xa1
wpa_supplicant[6322]: TLSv1: Failed to parse private key
wpa_supplicant[6322]: TLS: Failed to load private key
wpa_supplicant[6322]: TLS: Failed to set TLS connection parameters
wpa_supplicant[6322]: EAP-TLS: Failed to initialize SSL.
wpa_supplicant[6322]: wlan0: EAP: Failed to initialize EAP method: vendor 0 method 13 (TLS)
I am currently assuming that the key cannot be released with the password. I opened the key once in XCA and was then able to look at it there with the password. I created the certificates and keys using the included tools from freeradius. Do I have to pay attention to something special in order to be able to use the certificates and keys in OpenWrt.