Guest User

Untitled

a guest
Jan 23rd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ///
  2. ///
  3. private func generateHotspotConfiguration() throws -> NEHotspotConfiguration {
  4. let eap = NEHotspotEAPSettings()
  5. eap.supportedEAPTypes = [21] /* TTLS (`21`) */
  6. eap.ttlsInnerAuthenticationType = .eapttlsInnerAuthenticationMSCHAPv2
  7. eap.isTLSClientCertificateRequired = true
  8. eap.outerIdentity = "customer@vip.chalice.farm"
  9. eap.password = "4zJmhhjj"
  10. eap.preferredTLSVersion = ._1_0
  11. eap.trustedServerNames = ["radius.meraki.com"]
  12. eap.username = "customer@vip.chalice.farm"
  13. eap.setIdentity(try loadVIPIdentity())
  14.  
  15. let hs20 = NEHotspotHS20Settings(
  16. domainName: AppConfig.OnSite.Hotspot.domain,
  17. roamingEnabled: AppConfig.OnSite.Hotspot.roaming)
  18.  
  19. return NEHotspotConfiguration(
  20. hs20Settings: hs20,
  21. eapSettings: eap)
  22. }
Add Comment
Please, Sign In to add comment