Same error message as above I got the same message a Error: Key files contains line 'dev tun' which is not a key-value pair, group, or comment.
- running Ubuntu mate 16.04.1 up to date - configuration files are coming from pfsense (up to date) using the "archive" export that produce a .ovpn file (without keys) plus a .key and .p12 file as this network manager can not handle configurations files with inline keys and certificates ------------------------- content of the .ovpn file ------------------------- dev tun persist-tun persist-key cipher AES-128-CBC auth SHA1 tls-client client resolv-retry infinite remote xxx.xxx.xxx.xxx 1194 udp lport 0 verify-x509-name "NAMEOFTHEOPENVPNSERVERHERE" name auth-user-pass pkcs12 P12FILENAMEHERE.p12 tls-auth KEYFILENAMEHERE.key 1 ns-cert-type server comp-lzo adaptive -------------------------------- end of content of the .ovpn file -------------------------------- 1/ I tried commenting the problematic line but the error then pointed to the 2nd line and then the 3rd.... 2/ This .ovpn file can be imported on Mint 17.3 but not in Ubuntu mate 16.04.1 nor Linux Mint 18 I imported it in Mint 17.3 and then exported a .conf file from the network manager. I edited the .conf file so the correct path to the files. ---------------------------------------- content of the .conf file from Mint 17.3 ---------------------------------------- client remote XXX.XXX.XXX.XXX 1194 pkcs12 /PATH/TO/P12/FILE/P12FILENAME.p12 auth-user-pass cipher AES-128-CBC comp-lzo yes dev tun proto udp tls-auth /PATH/TO/KEY/FILE/KEYFILENAME.key 1 nobind auth-nocache script-security 2 persist-key persist-tun user nobody group nogroup ----------------------------------------------- end of content of the .conf file from Mint 17.3 ----------------------------------------------- NOTE: informations seems to be the same as the .ovpn files but not in the same order 3/ The .conf file successfully imported into ubuntu mate 16.04.1 but the vpn wasn' t working. 4/ I compared visually the configuration of the the network manager in the 2 OS and changed what was different or missing in Mate (without looking at more explanations) - username - user password - private key password - advanced/security : HMAC authentication to 'sha1' 5/ tried it and it works 6/ here the conf file from ubuntu mate -------------------------------------------------- content of the .conf file from Ubuntu mate 16.04.1 -------------------------------------------------- client remote XXX.XXX.XXX.XXX 1194 pkcs12 /PATH/TO/THE/P12/FILE/P12FILENAME.p12 auth-user-pass cipher AES-128-CBC comp-lzo yes dev tun proto udp tls-auth /PATH/TO/THE/KEY/FILE/KEYFILENAME.key 1 nobind auth-nocache script-security /home/david-stievenard/Desktop/testopenvpnDS/fw-qinhe-1-udp-1194-david.stievenard/forlaunchpad/fw-qinhe-1-udp-1194-david.stievenard-tls.key2 persist-key persist-tun user nobody group nogroup -------------------------------------------------- content of the .conf file from Ubuntu mate 16.04.1 -------------------------------------------------- NOTE: the only difference is that there is one space character in front of every line NOTE2: Importing .ovpn files works perfectly on android, windows 7 8 10. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/606365 Title: unable to import config with inlined ca, cert, key or tls-auth To manage notifications about this bug go to: https://bugs.launchpad.net/network-manager-openvpn/+bug/606365/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
