Posted on 04-11-2019 01:50 AM
Hi =)
We would like to pre-publish a network SSID via plist or script of possible which does eap-tls auth with a user based certificate ( due to mac is not AD bound, we use NoMAD ).
Thanks to Nomad the certificate is already stored within the keychain.
How to add preferred wirelessnetwork at index include Mode and Indentity?
1) SSID default lan.test.com
networksetup -addpreferredwirelessnetworkatindex en0 lan.test.com 1 WPA2E
2) Mode = EAP-TLS ?
3) Identification = user certificate ?
Help me please =)
Solved! Go to Solution.
Posted on 09-09-2019 06:23 PM
Because you are already using NoMAD you can use the WifiNetworks setting to associate the certificate you already have from NoMAD.
SSIDs of wireless networks you would like to associate any certificates created with NoMAD to via an identity preference in the Keychain.
An example could be:
<key>WifiNetworks</key>
<array>
<string>CorpNet</string>
<string>lan.test.com</string>
</array>
You can find more info about that setting and all the others here: https://nomad.menu/help/preferences-and-what-they-do/
Hope that helps!
Posted on 09-08-2019 12:12 PM
Did you get anywhere with this?
Posted on 09-09-2019 11:15 AM
+1
Posted on 09-09-2019 11:39 AM
If this configuration gets pushed with a Config Profile from Jamf, I believe the identity setting gets applied automatically, or at least I think there is an option to do so.
If it's being set up manually, the way to do this is with the security set-identity-preference
command.
What I'd suggest when seeing one of those dialogs is to choose the correct certificate manually and set in the UI, then go back and look in the user's login.keychain in Keychain Access for the new identity preference that was just created (you can sort to just those using the Kind column) It should be in a format similar to com.apple.network.eap.user.identity.wlan.ssid.[SSID Name]
If you open it up in Keychain Access, you should see all the settings needed in order to be able to plug those into the security command to create them in a script.
In fact, here's an older thread where this is discussed on how to create those, since they need to be done as the logged in user, not as root. I mention on the thread on how to do that. The instructions on there may be a little out of date for today's OS versions, but it should get you on the right track.
https://www.jamf.com/jamf-nation/discussions/25043/script-assistance-802-1x-wifi-user-keychain
Posted on 09-09-2019 12:26 PM
Perhaps something like this will work? Minus "Use as LoginWindow Configuration"
You can deploy the WiFi network and certificates as well as trust the chain of certs with the payload preferences.
Configuration Profiles -> Network
setup the interface, SSID, security type and protocols.
In the same profile add "Certificate" payload.
Go back to the network payload and select the "Trust" tab and trust them all.
This should add the certificates to the Local Items Keychain and trust it for all users.
Posted on 09-09-2019 06:23 PM
Because you are already using NoMAD you can use the WifiNetworks setting to associate the certificate you already have from NoMAD.
SSIDs of wireless networks you would like to associate any certificates created with NoMAD to via an identity preference in the Keychain.
An example could be:
<key>WifiNetworks</key>
<array>
<string>CorpNet</string>
<string>lan.test.com</string>
</array>
You can find more info about that setting and all the others here: https://nomad.menu/help/preferences-and-what-they-do/
Hope that helps!
Posted on 03-03-2020 05:29 AM
@ryan What is the second string "lan.test.com" defining?
Posted on 05-13-2021 08:09 AM
How would I set this up with Jamf Connect?