I struggled for a long time before I was finally able to get Network Manager calling openvpn to work with an Express vpn ‘ovpn’ file. I kept getting the error “failed to activate”.
I dare say I went on a wild goose chase and I spent a few hours checking the .pem files and trying .crt /.key files (as one can convert between the two with ‘ssl’ ) but to no avail. I even tried an ‘openvpn’ (and support files) de-install and re-install to no avail.
Finally I stumbled on the solution here:
The solution: One needs to modify the Express OVPN file (with a text editor) by removing the line that defines the keysize
option, which appears to be not supported anymore as of openvpn version 2.6 (where LEAP-15.6 comes with openvpn 2.6.8). For what ever reason, the openSUSE network manager has an issue with the ‘keysize’ in the opvn file - which makes me believe that network manager needs an update.
As noted in the quoted article, the solution, once known, simply requires one to open the opvn file with a text editor, and remove the line that defines the keysize
option.
Then import the opvn file with Network manager, and enter one’s Express vpn user name (a long sequence of characters) and one’s Express vpn password (another long sequence of characters) and the vpn connection works.
If it had not been for my stumbling across that internet article, I do not believe I would have solved this.
It does mean I now need to go to all of the ovpn files for the different countries ovpn files (that I downloaded from Express vpn), and remove that ‘keysize’ option from the files.
It makes sense to me that Network manager needs an update to ignore that line, as it does not make sense for ExpressVPN to change their ovpn entries just to be compatible with the openSUSE Network manager implementation (as Express VPN needs to be compatible with different openvpn version implementations).
I don’t know if this issue is openSUSE Network manager specific, or true across all distributions for their Network manager implementations.
Needless to say - I am happy to having sorted this. As I get older - this does not get easier.