Inlining works beautifully. (CASE #1)
Creating a mobileconfig with a user cert and the openvpn config in it, then deploying the mobileconfig through my MDM (Intune) works great as well. (CASE#2) The client notices that there is no cert and key directive, enumerates the keychain and finds the cert to use.
What I wasn't able to get to work:
- have Intune deploy a cert through SCEP and have Intune deploy a custom OpenVPN config profile (CASE#3) - Intune won't allow the ca directive due to a 1000 char limit on key-value pairs (see
https://forums.openvpn.net/viewtopic.php?f=36&t=31784), without which the connection obviously fails
- have Intune deploy a cert through SCEP and have Intune deploy the VPN config in a mobileconfig (CASE#4) - I found no way to reference the SCEP cert in the client config or to have the client look for a cert in the keychain similar to how it happens in CASE#2