How to add Enterprise SSID with username and password stored in keychain

Hi Experts,

I am connecting to SSID with API associateToEnterpriseNetwork:identity:username:password:error:

  • I am successfully able to connect
  • Problem is when I turn off/on my wifi, it can not connect to SSID back again without asking username and password

Wondering if there is any way to store this permanently into key store so user do not have to enter it again? Any hint here would be helpful.

Core WLAN has various keychain helper routines in <CoreWLAN/CoreWLANUtil.h>.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi eskimo,

I am able to successfully execute code below, also er is null but seems after switch off / on Wi-Fi from UI again it is asking for username and password.

        OSStatus er = CWKeychainSetWiFiEAPUsernameAndPassword(d, nssid, onexuser, onexpass);
        NSLog(@"Status: %@", er);```

Am I using wrong routine?
Would appreciate help here.
How to add Enterprise SSID with username and password stored in keychain
 
 
Q