Ask Your Question

Revision history [back]

Fedora18 NetManager fails to correctly import openvpn config file

Hi, from my vpn provider I downloaded my account's .ovpn configuration file for openvpn.
It contains some (apparently network) parameters, a ‹ca> certificate, a ‹key> (private) key, a ‹cert> certificate and a ‹tls-auth> OpenVPN Static key V1.
When setting up the vpn in NetworkManager in my fedora18, there is an option of importing a saved VPN configuration, which I used. However, after importing the configuration file, the connection edit window of NetworkManager appears, asking for all the Authentication data, which it was supposed to have imported.
Installed are NetworkManager-0.9.8.2-1.fc18 and NetworkManager-openvpn-0.9.3.997-3.fc18.
Apparently it doesn't work as intended. Is there something I overlooked?

It would be ok with me if the importing facility doesn't work, but then my question would be:
Can I just cut the separate keys out of the .ovpn file and put them in their own files and point NetworkManager (file combo-boxes) at them?
And which one goes where? The names don't seem to match. Under 'Certificates (TLS)', NetworkManager asks for User Certificate, I guess here goes my ‹cert>, for a CA Certificate which most probably means the ‹ca>. Then for a Private Key, probably my ‹key>.
But then, where should the ‹tls-auth> go?

For reference I included the (anonymised) .ovpn file below. It would be great if somebody could answer this.

remote X.X.X.X 4672 udp
remote X.X.X.X 123 udp
remote X.X.X.X 53 udp
key-direction 1
cipher BF-CBC
client
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
;http-proxy-retry
;http-proxy X.X.X.X 80
verb 4
reneg-sec 86400
echo account ovpn22
tun-mtu 1500
route-method exe
route-delay 2
redirect-gateway def1
comp-lzo no
explicit-exit-notify 2
fragment 1390
mssfix 1390
hand-window 30
‹ca>
-----BEGIN CERTIFICATE-----
MII....g==
-----END CERTIFICATE-----
‹/ca>
‹key>
-----BEGIN PRIVATE KEY-----
MII...g==
-----END PRIVATE KEY-----
‹/key>
‹cert>
-----BEGIN CERTIFICATE-----
MII...lA==
-----END CERTIFICATE-----
‹/cert>
‹tls-auth>
-----BEGIN OpenVPN Static key V1-----
93...cbf
-----END OpenVPN Static key V1-----
‹/tls-auth>

Fedora18 NetManager fails to correctly import openvpn config file

Hi, from my vpn provider I downloaded my account's .ovpn configuration file for openvpn.
It contains some (apparently network) parameters, a ‹ca> certificate, a ‹key> (private) key, a ‹cert> certificate and a ‹tls-auth> OpenVPN Static key V1.
When setting up the vpn in NetworkManager in my fedora18, there is an option of importing a saved VPN configuration, which I used. However, after importing the configuration file, the connection edit window of NetworkManager appears, asking for all the Authentication data, which it was supposed to have imported.
Installed are NetworkManager-0.9.8.2-1.fc18 and NetworkManager-openvpn-0.9.3.997-3.fc18.
Apparently it doesn't work as intended. Is there something I overlooked?

It would be ok with me if the importing facility doesn't work, but then my question would be:
Can I just cut the separate keys out of the .ovpn file and put them in their own files and point NetworkManager (file combo-boxes) at them?
And which one goes where? The names don't seem to match. Under 'Certificates (TLS)', NetworkManager asks for User Certificate, I guess here goes my ‹cert>, for a CA Certificate which most probably means the ‹ca>. Then for a Private Key, probably my ‹key>.
But then, where should the ‹tls-auth> go?

For reference I included the (anonymised) .ovpn file below. It would be great if somebody could answer this.

remote X.X.X.X 4672 udp
remote X.X.X.X 123 udp
remote X.X.X.X 53 udp
key-direction 1
cipher BF-CBC
client
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
;http-proxy-retry
;http-proxy X.X.X.X 80
verb 4
reneg-sec 86400
echo account ovpn22
tun-mtu 1500
route-method exe
route-delay 2
redirect-gateway def1
comp-lzo no
explicit-exit-notify 2
fragment 1390
mssfix 1390
hand-window 30
‹ca>
-----BEGIN CERTIFICATE-----
MII....g==
-----END CERTIFICATE-----
‹/ca>
‹key>
-----BEGIN PRIVATE KEY-----
MII...g==
-----END PRIVATE KEY-----
‹/key>
‹cert>
-----BEGIN CERTIFICATE-----
MII...lA==
-----END CERTIFICATE-----
‹/cert>
‹tls-auth>
-----BEGIN OpenVPN Static key V1-----
93...cbf
-----END OpenVPN Static key V1-----
‹/tls-auth>

Fedora18 NetManager fails to correctly import openvpn config file

Hi, from my vpn provider I downloaded my account's .ovpn configuration file for openvpn.
It contains some (apparently network) parameters, a ‹ca> certificate, a ‹key> (private) key, a ‹cert> certificate and a ‹tls-auth> OpenVPN Static key V1.
When setting up the vpn in NetworkManager in my fedora18, there is an option of importing a saved VPN configuration, which I used. However, after importing the configuration file, the connection edit window of NetworkManager appears, asking for all the Authentication data, which it was supposed to have imported.
Installed are NetworkManager-0.9.8.2-1.fc18 and NetworkManager-openvpn-0.9.3.997-3.fc18.
Apparently it doesn't work as intended. Is there something I overlooked?

It would be ok with me if the importing facility doesn't work, but then my question would be:
Can I just cut the separate keys out of the .ovpn file and put them in their own files and point NetworkManager (file combo-boxes) at them?
And which one goes where? The names don't seem to match. Under 'Certificates (TLS)', NetworkManager asks for User Certificate, I guess here goes my ‹cert>, for a CA Certificate which most probably means the ‹ca>. Then for a Private Key, probably my ‹key>.
But then, where should the ‹tls-auth> go?

For reference I included the (anonymised) .ovpn file below. It would be great if somebody could answer this.

remote X.X.X.X 4672 udp
remote X.X.X.X 123 udp
remote X.X.X.X 53 udp
key-direction 1
cipher BF-CBC
client
dev tun
resolv-retry infinite
nobind
persist-key
persist-tun
;http-proxy-retry
;http-proxy X.X.X.X 80
verb 4
reneg-sec 86400
echo account ovpn22
tun-mtu 1500
route-method exe
route-delay 2
redirect-gateway def1
comp-lzo no
explicit-exit-notify 2
fragment 1390
mssfix 1390
hand-window 30
‹ca>
-----BEGIN CERTIFICATE-----
MII....g==
-----END CERTIFICATE-----
‹/ca>
‹key>
-----BEGIN PRIVATE KEY-----
MII...g==
-----END PRIVATE KEY-----
‹/key>
‹cert>
-----BEGIN CERTIFICATE-----
MII...lA==
-----END CERTIFICATE-----
‹/cert>
‹tls-auth>
-----BEGIN OpenVPN Static key V1-----
93...cbf
-----END OpenVPN Static key V1-----
‹/tls-auth>