Hi, what am I using:
Knetworkmanager 0.2.2
openvpn 2.1c7-1ubuntu3.3
network-manager-openvpn 0.3.2svn2342-1ubuntu4
When running openvpn client.ovpn its working with a .p12 file.
I configured the openvpn gui with X.509 connection type and exported the 3 certificate files with openssl like this:
I selected TCP connection and cipher: BF-CBC as optional settings.
My ovpn file looks like this:
#OpenVPN Server conf
tls-client
client
dev tun
proto tcp
tun-mtu 1500
remote host.homelinux.net 1194
pkcs12 portable.p12
cipher BF-CBC
verb 3
ns-cert-type server
This is the daemon.log output:
Jun 16 16:00:29 TELINTUX NetworkManager: <info> Will activate VPN connection 'VPN', service 'org.freedesktop.NetworkManager.openvpn', user_name 'gerrit', vpn_data 'connection-type / x509 / remote / host.homelinux.net / port / 1194 / ca / /etc/openvpn/cacert.pem / cert / /etc/openvpn/usercert.pem / key / /etc/openvpn/userkey.pem / cipher / BF-CBC / shared-key / / username / / local-ip / / remote-ip / / dev / tun / proto / tcp / ta-dir / none', route ''.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 1 of 4 (Connection Prepare) scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.openvpn (PID 32641)
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 1 of 4 (Connection Prepare) complete.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 1 -> 6.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 2 of 4 (Connection Prepare Wait) waiting...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 2 of 4 (Connection Prepare Wait) complete.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) sending connect request.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) request sent, waiting for reply...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 6 -> 3.
Jun 16 16:00:29 TELINTUX nm-openvpn[32644]: OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008
Jun 16 16:00:29 TELINTUX nm-openvpn[32644]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) reply received.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN Stage 4 of 4 (IP Config Get) timeout scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) complete, waiting for IP configuration...
Jun 16 16:00:44 TELINTUX nm-openvpn[32644]: ERROR: could not read Private Key username/password/ok from management interface
Jun 16 16:00:44 TELINTUX nm-openvpn[32644]: Exiting
Jun 16 16:00:44 TELINTUX NetworkManager: <WARN> nm_vpn_service_process_signal(): VPN failed for service 'org.freedesktop.NetworkManager.openvpn', signal 'ConnectFailed', with message 'The VPN login failed because the VPN program could not connect to the VPN server.'.
Jun 16 16:00:44 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 3 -> 5.
Jun 16 16:00:44 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 5 -> 6.
Jun 16 16:00:44 TELINTUX NetworkManager: <WARN> nm_vpn_service_stop_connection(): (VPN Service org.freedesktop.NetworkManager.openvpn): could not stop connection 'VPN' because service was 6.
Whats going wrong? I can see the private key can not be read but I never get a dialog to enter a password or something. Cannot find an entree in the KDE wallet.
Thanks in advance
Knetworkmanager 0.2.2
openvpn 2.1c7-1ubuntu3.3
network-manager-openvpn 0.3.2svn2342-1ubuntu4
When running openvpn client.ovpn its working with a .p12 file.
I configured the openvpn gui with X.509 connection type and exported the 3 certificate files with openssl like this:
Code:
openssl pkcs12 -nocerts -in default.p12 -out userkey.pem openssl pkcs12 -nokeys -clcerts -in default.p12 -out usercert.pem openssl pkcs12 -nokeys -cacerts -in default.p12 -out userca.pem
My ovpn file looks like this:
#OpenVPN Server conf
tls-client
client
dev tun
proto tcp
tun-mtu 1500
remote host.homelinux.net 1194
pkcs12 portable.p12
cipher BF-CBC
verb 3
ns-cert-type server
This is the daemon.log output:
Jun 16 16:00:29 TELINTUX NetworkManager: <info> Will activate VPN connection 'VPN', service 'org.freedesktop.NetworkManager.openvpn', user_name 'gerrit', vpn_data 'connection-type / x509 / remote / host.homelinux.net / port / 1194 / ca / /etc/openvpn/cacert.pem / cert / /etc/openvpn/usercert.pem / key / /etc/openvpn/userkey.pem / cipher / BF-CBC / shared-key / / username / / local-ip / / remote-ip / / dev / tun / proto / tcp / ta-dir / none', route ''.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 1 of 4 (Connection Prepare) scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 1 of 4 (Connection Prepare) ran VPN service daemon org.freedesktop.NetworkManager.openvpn (PID 32641)
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 1 of 4 (Connection Prepare) complete.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 2 of 4 (Connection Prepare Wait) scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 1 -> 6.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 2 of 4 (Connection Prepare Wait) waiting...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 2 of 4 (Connection Prepare Wait) complete.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) sending connect request.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) request sent, waiting for reply...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 6 -> 3.
Jun 16 16:00:29 TELINTUX nm-openvpn[32644]: OpenVPN 2.1_rc7 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] built on Jun 11 2008
Jun 16 16:00:29 TELINTUX nm-openvpn[32644]: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) reply received.
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN Stage 4 of 4 (IP Config Get) timeout scheduled...
Jun 16 16:00:29 TELINTUX NetworkManager: <info> VPN Activation (VPN) Stage 3 of 4 (Connect) complete, waiting for IP configuration...
Jun 16 16:00:44 TELINTUX nm-openvpn[32644]: ERROR: could not read Private Key username/password/ok from management interface
Jun 16 16:00:44 TELINTUX nm-openvpn[32644]: Exiting
Jun 16 16:00:44 TELINTUX NetworkManager: <WARN> nm_vpn_service_process_signal(): VPN failed for service 'org.freedesktop.NetworkManager.openvpn', signal 'ConnectFailed', with message 'The VPN login failed because the VPN program could not connect to the VPN server.'.
Jun 16 16:00:44 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 3 -> 5.
Jun 16 16:00:44 TELINTUX NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' signaled state change 5 -> 6.
Jun 16 16:00:44 TELINTUX NetworkManager: <WARN> nm_vpn_service_stop_connection(): (VPN Service org.freedesktop.NetworkManager.openvpn): could not stop connection 'VPN' because service was 6.
Whats going wrong? I can see the private key can not be read but I never get a dialog to enter a password or something. Cannot find an entree in the KDE wallet.
Thanks in advance
Comment