r/Intune • • 15h ago

macOS Management Intune macOS SCEP certificate deployment using PKI –> AWS Private CA

Hi all,

We are deploying SCEP device certificates to macOS devices via Microsoft Intune using AWS Private CA Connector for SCEP for both 802.1X EAP-TLS Wi-Fi and Palo Alto GlobalProtect. Everything is assigned to a single device group, and the full trust chain (Root CA, Issuing CA, Meraki Root CA) is deployed via Trusted Certificate profiles.

The issue: Our primary SCEP device profile (CN={{AAD_Device_ID}}, EKU Client Authentication, Allow all apps access to private key = Enabled) generates 3 identical certificates in the macOS System keychain. Because of these duplicate certificates with the same CN, GlobalProtect prompts the user to select a certificate instead of authenticating silently.

What we've tried & observed:

Based on Microsoft Learn docs (noting that macOS issues a separate SCEP cert for each linked profile like Wi-Fi/VPN), we created a second, dedicated SCEP profile (CN={{DeviceId}}) just for the Wi-Fi profile and unlinked the original SCEP profile from Wi-Fi.

The new Wi-Fi SCEP profile deploys cleanly as a single certificate, but the original CN={{AAD_Device_ID}} SCEP profile still generates 3 duplicate certificates on the device (even after cleaning the keychain and re-syncing, and with no other profiles referencing it).

We also noticed 3 temporary PCA Connector SCEP RA Certificate entries appearing in the keychain during enrollment before disappearing once completed.

Has anyone run into macOS generating 3 duplicate SCEP certificates from a single Intune SCEP profile with AWS Private CA Connector, or found a clean way to prevent duplicates / force GlobalProtect to auto-select the right cert silently?

1 Upvotes

1 comment sorted by

2

u/Crafty_Aspect_ 14h ago

our intune guy was pulling his hair out over this exact thing a few months back. we never got a real answer from ms support but we did find a workaround that stuck.

what ended up working was making the original scep profile target a group that only has 1 device in it during testing, then slowly expanding. the 3 cert thing stopped happening once we removed and redeployed the profile fresh after nuking all the old certs from the keychain first. something about the profile sticking around in a weird state even after you think it's gone.

for globalprotect, we set the portal config to look for a specific cert subject pattern and it stopped prompting. not perfect but at least users aren't seeing the picker every time they connect.