I had exactly the same problem with the same kind of configuration (delivered by MDM),
user-auth-pass
ca
vpn-on-demand 0
tls-auth
The password consists of a 4 digit string and TOTP (6 digit string)
So it changes on each connection, the user has to enter the user name and the password.
I kept getting the following error :
NIP: OpenVPN VoD config error: Neither CertificatePayload nor cert/key values configured
EVENT: VOD_CONFIG_ERROR Neither CertificatePayload nor cert/key values configured [ERR]
So I've added the missing keys to the .mobileconfig file
With garbage as the values and it seems to get past the CertificatePayload error. But fails on authentication
Because of an EmptyPassword (AUTHFAILED)
<key>cert</key>
<string>Something invalid</string>
<key>key</key>
<string>Something invalid so that the config gets parsed</string>
I am now facing the problem described here:
https://forums.openvpn.net/viewtopic.php?t=35230
I can't start the connection through the app! The toggle button is inactive when the connection is configured by
MDM.
OpenVPN seems to handle this as a VoD profile when delivered by MDM.
I am not expecting a response from the 'devs'
Just posting this for documentation... I will probably ask my client to disable the TOTP component in the password!
So that it will work (by setting a umame/password) with the user-auth-pass configuration directive
I will keep looking for a solution by myself..
If only it was a native app π it would of made my life easier, because Javascript Hermes bytecode makes me want to vomit all over my keyboard π
oh and React is cancer. π
BR
Erik Tagirov