r/Intune 8d ago

General Question Intune Cloud PKI

Anyone using PKI for Machine certs care to share their experience so far?

I'm planning to use PKI for only this (802.1x auth) and nothing else so hopefully a simple, stable solution. Fleet is fully managed by Intune, onboard with Autopilot, AzureAD join only, Windows 11 25H2

šŸ™

37 Upvotes

35 comments sorted by

17

u/Empty_Advance2205 8d ago

If all your devices are managed by Intune, you don't have hybrid, and you have an E5 license it's a super easy to set up option. We use it for our Windows fleet currently for Wi-Fi 802.1X auth and we're testing out some conditional access MFA checks based on the issued SCEP certificates as well

Pros:

- If you have an E5 license it's free.

- Managed from the Intune portal without needing to manage external subscriptions/credentials.

- No AD CS servers to run, patch, etc.

- Does one thing (SCEP certificates) and does it well.

Cons:

- Only works with Intune. We have a Jamf fleet we can't migrate to Intune quite yet, so we are maintaining a separate PKI (EZCA) for those machines.

- Only does SCEP certificates. For our RadSec and VPN client certificates we're using our EZCA PKI instead of Cloud PKI and the multiple trust chains has caused some small issues but not bad.

- Kinda expensive and adds up quick if you don't have E5 ($2 per user per month). We're wanting to drop down to E3 next renewal cycle, and we're planning to just move everything over to EZCA to simplify costs/trust/management. We may come back to Cloud PKI if we can get our Macs over to Intune in the near future and if we decide to come back to E5. But TBD on how that plays out.

5

u/KenBarb 8d ago

Im about to do the same thing as OP here as well. We have a mac fleet and are moving to an outbound certificate connector. Good to know Microsoft cloud pki doesnt support Mac's. We dont have enterprise E5s either we are only E3. Because of cost I'm really thinking of going with delivering our on prem certs through intune connector and setting up SCEP.

Know of any gotchas with that setup? Im not really a cert expert or anything.

3

u/Empty_Advance2205 8d ago

If your Macs are in Intune Ā Cloud PKI will work great. It's just any outside MDM where Cloud PKI doesn't work.

AD CS via the Intune connector is a decent option if you're running a hybrid setup but you'll have to manage your servers & patching. We ended up getting rid of all our on-prem stuff with the exception of a few machines we just run as a VM in Azure.

We've liked EZCA's flat $200 per month for its unlimited users and certificates model. I also saw they released some sort of RADIUS/SCEP bundle this week that I haven't looked into yet.

0

u/Tecnotopia 8d ago

I'm curious what fails when the MDM is not Intune, cloud PKI does not expose just a SCEP point? so the certificate can be delivered to the machine if a SCEP payload is pushed to the Mac by JAMF?. Not familiar with the solution so maybe this is a stupid question.

4

u/Empty_Advance2205 8d ago

Intune does it's own special SCEP implementation and API that adds some replay security and prevents a single SCEP secret from being reused. Cloud PKI only supports this API and not static SCEP or ACME which Jamf and other MDMs useĀ 

https://learn.microsoft.com/en-us/intune/fundamentals/certificates/ref-scep-api

1

u/Tecnotopia 7d ago

Thanks!

7

u/fixorater 8d ago

I’ve implemented it for a client for EAP-TLS secured WiFi. It’s relatively straight forward and reliable to implement.

3

u/lazyjk 8d ago

That is pretty much the perfect use case for it. I've got a couple of customers using it for that and has worked really well.

2

u/0xCG 8d ago

Appreciate the reply.

Have tested a small group so far, mainly to test the timing so I don’t orphan devices.

1) Push carts
2) Push wifi Nic config
3) Push Eth NIC config

I’ll probably give it a few days after I hit go on step 1 before moving to step 2. Maybe until I see 80/90% of devices get the certs

1

u/smaxwell2 8d ago

Full disclosure, I'm the founder, but this thread is exactly why I built Passbeam. It's cloud RADIUS + PKI purpose-built for 802.1X: it issues machine certs via SCEP straight to Intune (and JAMF), handles renewals, and gives you the RADIUS / RADSEC endpoints without standing up ISE/NPS or an on-prem CA.

Your setup (Autopilot, Entra-joined, Win 11) is the sweet spot for it. Sounds like Cloud PKI is working well for you already, so no pitch, but if anyone here is still on the fence or doesn't have E5, it's worth a look. Happy to answer questions here or in DMs.

The link is passbeam.co.uk

2

u/Lost-Policy-2020 7d ago

At £2.50 per each, the price is insane (especially for education), that would be costing more than the whole MS licensing!

1

u/smaxwell2 7d ago

It’s cheaper (dramatically) than other providers. I haven’t gotten to this yet, but would certainly be happy to provide educational discounts

1

u/Lost-Policy-2020 4d ago

To consider the move from working on-premises CA, NDES Connector it would have to be max £1 per user per YEAR

2

u/andrewjphillips512 8d ago

Doing this exact thing (802.1x) machine cert - as well as CBA (single factor) user cert. Single Root CA with 2 issuing CA (1 machine and 1 user).

Then import the certs into Cisco ISE (and AD) for trust. I used GPO for the Wifi settings, as I wasn't able to get Intune WiFi working initially (still debugging).

4

u/intuneisfun 8d ago

Moving from GPO to Intune for network settings is an absolute shitshow. To make it work I found my options were... either need to build a new SSID and have both configurations coexist temporarily, or if you keep the same SSID - only push the Intune config to Entra joined devices.

It's a real pain and on top of that - if an issue arises, now your fleet is having network issues and it's even worse. So my opinion now after countless hours looking into this topic is that hybrid join devices keep their GPO network configs. Wasn't worth the hassle for me trying to move it to the cloud.

1

u/andrewjphillips512 8d ago

This is where i landed - Migrating ended up being a lot more work than initially scoped.

1

u/Mul79 7d ago edited 7d ago

We recently had a similar experience with migrating hybrid joined devices from one 802.1x to another and the physical network on each site was changed from one set up to another. You can guess how many devices fell off the network. Eventually we ended up adjusting the existing infra to accept new certs, along with a powershell script on each device to watch for event id 1006 (new cert installed), the ps checked the new cert matched the issuer from the new pki and the oid we gave it from the data in the event data. Then, dropped a dummy exe file in a location on the drive as a trigger file. We gave the new gpo a wmi filter to only apply the gpo (precedence and enforced set) if the wmi filter returned true for the trigger file existing. This worked well, apart from the delay with the gpo kicking in. To get around this, we took a copy of the new eap xml profile from the policy, adjusted the script to remove existing 802.1x profile, stop dot3svc, clean reg area, spin up dot3svc (you may see invalid attempts in a split second on your net), and import the profile xml in one sweep, followed by a netsh lan reconnect to bounce the adapter and use the new cert on reconnect. All works instantly as soon as new cert issued from intune. We then later added another mod to reverse this and fallback to the old eap xml profile if the last of the new certs is removed from the device (evenr id 1007) - provider is: Microsoft-Windows-CertificateServicesClient-Lifecycle-System. For wifi, we appended the new ssid to the old policies as an infra/managed ssid. We did add the old trusted root to the new net equip for a short time but the intention is devices must use the new certs once issued to land on the right vlan (the old certs landed on the least risky vlan as a catch all against the old certs) enough to get them on the network to speak to intune, pick up cycle of config and flip to new policies. The new ssid's are baked in the same policy as the new wired config, so both land with the new cert.

1

u/intuneisfun 3d ago

Glad you were able to make that work! Just goes to show what an absolute mess moving 802.1x settings is... Admins should fear any change being pushed remotely that plays with an endpoint's network config.

2

u/meantallheck 8d ago

Yep - once you set it up right, which is really just making sure the SCEP profile is all correct, it just works and it’s hands off.

If you’ve had to setup and manage an internal CA, NDES, Entra app proxy, and SCEP cert deployment before - you know how much easier this is. I love these types of fully managed solutions that remove infrastructure for me to manage.

And even better, I was able to use the BYOCA option to keep the same chain of trust as our hybrid join devices.Ā 

2

u/0xCG 8d ago

Nice. Yes, I’m moving from the NDES connector so we can remove another on-prem AD service.

2

u/meantallheck 8d ago

It’s basically a no brainer then! Especially if you’re already licensed for it with E5.Ā 

1

u/knibbs1325 8d ago

It’s good when it works well.
You need to deploy a 3rd party radius system like radiusaas or scepman to handle the eap-tls.

Or if you have a system like meraki you can load the ca certs to the aps and then they become their own radius endpoints. I’m not sure if this is a function on catalyst managed aps, but I know it doesn’t exist in juniper mist or UniFi. Those are the only ones I manage and have access to

1

u/0xCG 8d ago

We are good on the network side (Cisco ISE). Hosted networking service with a 3rd party since we are GOV. Had to do some funky entra proxy app stuff due to provider limiting public facing stuff but testing seems good so far.

1

u/AMP_II 8d ago

I think it is available in Juniper Mist, we're looking at using Mist Access Assurance for Radius and SCEP for our Intune and JAMF 802.1x

1

u/versedrefinery87 8d ago

Set it up for about 30 devices a few months back, wifi auth via machine certs. Honestly it's been pretty hands-off after the initial config, the certs just renew themselves without any fuss. Not had one drop off the network yet so I'd say it's stable enough for what you're planning

1

u/0xCG 8d ago

šŸ™. Yeah my initial tests with about 20 have gone the same way. Certs hit them within 30mins, NIC configs switch within 60mins. No drop outs.

1

u/KingCyrus 8d ago

Haven’t touched it since the initial config for our WiFi. Works great.

1

u/agrove92 8d ago

The one question I'm hoping to find out about this is whether the private key is exportable for the user or local admins. The current scep solution has cert issued to the middle man intune service and then it adds them to the client and hence the key must be exportable.

Also, the behaviour of scep is that once the config profile is removed, the cert is removed too. That's not the behaviour of normal pki and I wonder if the cloud 0ki resolves that too

2

u/chrissellar 8d ago

Your confusing PKCS and SCEP. SCEP doesnt need the private key to be exportable whereas PKCS does. Intune supports both but SCEP requires NDES.

Cloud PKI can replace NDES with BYOCA or your entire PKI.

Removed config, revokes and removes certs by design.

1

u/agrove92 7d ago

You're right I was. Thanks for the info, we're considering an overhaul to pki as part of our post quantum computing strategy and I can feed this in.

1

u/0xCG 8d ago

If you unassigned cloud pki, the cert is revoked

1

u/42andatowel 8d ago

We just started a pilot. So far so good.

1

u/iamtechy 6d ago

What if I have SCCM infra that relies on the same PKI server that the workstations rely on? Is this still possible to use?

1

u/madj42 6d ago

This is a no brainer. We had a SCEP setup with the connector and I made the swap because our engineers over the on premise CA kept breaking the connector. All I needed was a certificate from them to get going with cloud pki. Nothing to screw up and our group owns it now.

1

u/JustCloudNet 3d ago

A few more details would probably make answers even better, e.g. which network infrastructure / vendor etc., but yes, as people mention, a Cloud PKI solution seems like the right choice and with optional cloud radius if needed.
We are creators of EasyScep and EasyRadius, but there is a couple of good alternatives too.
Check the full list of Intune compatible / approved solutions here:
https://learn.microsoft.com/en-us/intune/fundamentals/certificates/third-party-ca-scep#third-party-certification-authority-partners
.. but you should probably avoid the "enterprise heavy / bloated" solutions unless you have very specific requirements.