Summary: | Importing .ovpn file doesn't work | ||
---|---|---|---|
Product: | [Plasma] plasma-nm | Reporter: | cocacooler |
Component: | editor | Assignee: | Lukáš Tinkl <lukas> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | jgrulich, lamarque |
Priority: | NOR | ||
Version: | 0.9.3.3 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
cocacooler
2014-07-04 20:32:44 UTC
Even if I select Connection type: X.509 With Password and select the .ovpn file as CA file, Certificate and key, and paste username and password and set Key Password to Not Required, it does not work - it immediately reports "VPN connection 'Connection Name' failed." Can you please try to activate your imported connection using "nmcli"? It should give you more information about the problem. Also NetworkManager logs could give you more information. Do you have installed NetworkManager-openvpn plugin? Regarding the import, I'll try to look at it when I have time. I have networkmanager-openvpn installed. Here I list contents of networkmanager log. Importing .ovpn file: Jul 5 02:23:44 crmlp NetworkManager[6434]: SCPlugin-Ifnet: Adding vpn connection Jul 5 02:23:44 crmlp NetworkManager[6434]: SCPlugin-Ifnet: Can't open /etc/wpa_supplicant/wpa_supplicant.conf for wireless security Jul 5 02:23:44 crmlp NetworkManager[6434]: SCPlugin-Ifnet: Loading connections Trying to connect: Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> Starting VPN service 'openvpn'... Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> VPN service 'openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 6173 Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> VPN service 'openvpn' appeared; activating connections Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> VPN plugin state changed: starting (3) Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> VPN connection 'Netherlands' (Connect) reply received. Jul 5 02:24:17 crmlp nm-openvpn[6175]: Options error: You must define CA file (--ca) or CA path (--capath) Jul 5 02:24:17 crmlp nm-openvpn[6175]: Use --help for more information. Jul 5 02:24:17 crmlp NetworkManager[6434]: <warn> VPN plugin failed: 1 Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> VPN plugin state changed: stopped (6) Jul 5 02:24:17 crmlp NetworkManager[6434]: <info> VPN plugin state change reason: 0 Jul 5 02:24:17 crmlp NetworkManager[6434]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active. Jul 5 02:24:22 crmlp NetworkManager[6434]: <info> VPN service 'openvpn' disappeared Setting Connection Type to X.509 with password and setting Username and Password: Jul 5 02:25:43 crmlp NetworkManager[6434]: copy_hash: assertion 'strlen (value)' failed Jul 5 02:25:43 crmlp NetworkManager[6434]: copy_hash: assertion 'strlen (value)' failed Jul 5 02:25:43 crmlp NetworkManager[6434]: copy_hash: assertion 'strlen (value)' failed After all previous steps and setting CA file, Certificate and Key to that .ovpn file and Key Password to Not Required: Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> Starting VPN service 'openvpn'... Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> VPN service 'openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 6999 Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> VPN service 'openvpn' appeared; activating connections Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> VPN plugin state changed: starting (3) Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> VPN connection 'Netherlands' (Connect) reply received. Jul 5 02:29:19 crmlp nm-openvpn[7006]: OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Jul 3 2014 Jul 5 02:29:19 crmlp nm-openvpn[7006]: library versions: OpenSSL 1.0.1h 5 Jun 2014, LZO 2.08 Jul 5 02:29:19 crmlp nm-openvpn[7006]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Jul 5 02:29:19 crmlp nm-openvpn[7006]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts Jul 5 02:29:19 crmlp nm-openvpn[7006]: Error reading PKCS#12 file /path/was/removed/because/privacy/filename.ovpn: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error Jul 5 02:29:19 crmlp nm-openvpn[7006]: Exiting due to fatal error Jul 5 02:29:19 crmlp NetworkManager[6434]: <warn> VPN plugin failed: 1 Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> VPN plugin state changed: stopped (6) Jul 5 02:29:19 crmlp NetworkManager[6434]: <info> VPN plugin state change reason: 0 Jul 5 02:29:19 crmlp NetworkManager[6434]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active. Jul 5 02:29:25 crmlp NetworkManager[6434]: <info> VPN service 'openvpn' disappeared *** This bug has been marked as a duplicate of bug 329837 *** |