Using the FAQ for importing an ovpn config to a mobileconfig file I am able to get the configuration to show in OpenVPN although it will not successfully connect. Using the ovpn file that the values were derived from, connection is a success after authentication. The error I get on the OpenVPN client is a popup stating Connection Error - Missing external certificate with the options to Continue or Select. The error shown in the log is Missing External PKI alias.
FAQ:
https://openvpn.net/faq/can-i-import-an-openvpn-profile-via-an-ios-mobileconfig-file/
ovpn config:
persist-tun
persist-key
cipher AES-128-CBC
ncp-ciphers AES-128-GCM
auth SHA256
tls-client
client
remote REDACTED 1194 udp
auth-user-pass
remote-cert-tls server
<ca>
-----BEGIN CERTIFICATE-----
REDACTED
-----END CERTIFICATE-----
</ca>
setenv CLIENT_CERT 0
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
REDACTED
-----END OpenVPN Static key V1-----
</tls-auth>
mobileconfig:
<key>VPN</key>
<dict>
<key>AuthName</key>
<string>REDACTED</string>
<key>AuthenticationMethod</key>
<string>Password</string>
<key>RemoteAddress</key>
<string>DEFAULT</string>
</dict>
<key>VPNSubType</key>
<string>net.openvpn.connect.app</string>
<key>VPNType</key>
<string>VPN</string>
<key>VendorConfig</key>
<dict>
<key>auth</key>
<string>SHA256</string>
<key>auth-user-pass</key>
<string>NOARGS</string>
<key>ca</key>
<string>-----BEGIN CERTIFICATE-----\nREDACTED\n-----END CERTIFICATE-----\n</string>
<key>cipher</key>
<string>AES-128-CBC</string>
<key>client</key>
<string>NOARGS</string>
<key>key-direction</key>
<string>1</string>
<key>ncp-ciphers</key>
<string>AES-128-GCM</string>
<key>persist-key</key>
<string>NOARGS</string>
<key>persist-tun</key>
<string>NOARGS</string>
<key>remote</key>
<string>"REDACTED 1194 udp"</string>
<key>remote-cert-tls</key>
<string>server</string>
<key>setenv</key>
<string>"CLIENT_CERT 0"</string>
<key>tls-auth</key>
<string>-----BEGIN OpenVPN Static key V1-----\nREDACTED\n-----END OpenVPN Static key V1-----\n</string>
<key>tls-client</key>
<string>NOARGS</string>
<key>vpn-on-demand</key>
<string>0</string>
</dict>
Thanks for any help regarding this.