Reference existing cert in keychain
Posted: Sat Feb 06, 2021 9:54 pm
I have been playing today with getting OpenVPN work with Intune management. There I have been blocked by not being able to deploy the ca directive due to field length issues.
My next try was with a mobileconfig file. I have managed to get it working by adding a user certificate to the config, referencing it in the VPN configuration and omitting cert and key directives. All good, connection succeeds, the connection log neatly shows that OpenVPN is enumerating the keychains, find two certs, uses one and manages to connect.
But I don't want to use the same cert for all my users, so I have removed the certificate from the mobileconfig. I do have a cert on the phone deployed through an other configuration profile (by an MDM) and I would like to use that cert.
This made the client complain: Missing external certificate. If I click select, I have got no UI to select the cert. The log shows: EVENT: CORE_ERROR Missing External PKI alias [ERR] and there is no sign of the client looking into the keychain.
How do I make the client start looking for certs in the keychain instead of just failing?
My next try was with a mobileconfig file. I have managed to get it working by adding a user certificate to the config, referencing it in the VPN configuration and omitting cert and key directives. All good, connection succeeds, the connection log neatly shows that OpenVPN is enumerating the keychains, find two certs, uses one and manages to connect.
But I don't want to use the same cert for all my users, so I have removed the certificate from the mobileconfig. I do have a cert on the phone deployed through an other configuration profile (by an MDM) and I would like to use that cert.
This made the client complain: Missing external certificate. If I click select, I have got no UI to select the cert. The log shows: EVENT: CORE_ERROR Missing External PKI alias [ERR] and there is no sign of the client looking into the keychain.
How do I make the client start looking for certs in the keychain instead of just failing?