Connect to Wi-Fi via EAP-TTLS and EAP-PEAP
Hi guys!
I will briefly explain to you what problem I'm having.
I spent a lot of time to find the solution but without any positive result.
So I hope that you can help me.
Our app is used to connect to a secure network via NEHotspotConfiguration.
NEHotspotConfiguration *configuration = [[NEHotspotConfiguration alloc] initWithSSID:networkName eapSettings:settings];
I configured NEHotspotEAPSettings with: username, password, outerIdentity, identity, supportedEAPTypes (NEHotspotConfigurationEAPTypeEAPTTLS and NEHotspotConfigurationEAPTypeEAPPEAP), trustedServerNames and trustedServerCertificates (client.cer and rootCA.cer).
Those certificates were generated by the guys from the server side and are incorporated in the iOS project via xcode.
I have checked if those certificates are valid. For example, in the debuger logs I can see the expiration date.
In the final step when the alert message appears that the app wants to join the secure network, after pressing the join button we see the message "Unable to join the network".
In the debuger logs I see the following:
NEHotspotEAPSettings failed to find persistent reference for identity. status = -25300
NEHotspotEAPSettings failed to find persistent reference for trusted server certificate. status = -25300
NEHotspotEAPSettings found nil persistent reference for identity
Do you have any ideas on how to fix it or what is wrong?
Thank you in advance!
iPhone 13 专业版