Posted on 07-28-2020 01:27 PM
Hello,
So we are configuring ISE in our environment and we cant use scep to automate it because security wont let us open the ports down to the internal scep server. so i just setup the config profile and added our ISE certs etc... the issue is the user are prompted the first time to choose the cert it is always the second cert in the list and it only happens the one time they choose it and they are good going forward... my question is there a way to have the user not have to choose the cert maybe a script that we can run after the config profile is pushed down ?
Posted on 07-29-2020 06:03 AM
Here is the script i tried to make work but no luck it doesnt choose the cert automatically any thoughts on what might be wrong ?
CurrentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
DockStatus=$(pgrep -x Dock)
echo -s "Waiting for User environment to be Stood Up"
while [[ "$DockStatus" == "" ]]
do
echo "User Environment not Loaded yet, Waiting"
sleep 5
DockStatus=$(pgrep -x Dock)
done
sleep 5
echo "$CurrentUser environment loaded, continuing with 802.1x identity creation"
JamfCertificateCommonName=$(sudo -u "$CurrentUser" security find-identity -v | grep " | awk '{print $3}' | sed 's/"//g')
sudo -u "$CurrentUser" security set-identity-preference -c "$JamfCertificateCommonName" -s "com.apple.network.eap.user.identity.default" /Library/Keychains/System.keychain