Opened 10 years ago

Closed 9 years ago

#418 closed Bug / Defect (notabug)

ovpn profile import fails with "line too long" error

Reported by: Fahrenheit Owned by: jamesyonan
Priority: major Milestone:
Component: OpenVPN Connect Version: 1.1.14
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords: ovpn profile line too long
Cc:

Description

Importing a specific .ovpn file in OpenVPN Connect on Android and OpenVPN on IOS results in an error "line too long." The error presented in the Android app logs is:

EVENT: PROFILE_MERGE_EXCEPTION info='line too long'

The same profile is able to be imported into TunnelBlick? for Mac. The options in the .ovpn file are below, followed by the certs and keys pasting:

client
dev tun
proto udp
remote xxx.xxxxxxx.xx 1195
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ns-cert-type server
key-direction 1
cipher AES-128-CBC
comp-lzo
verb 1
mute 20

Unfortunately, there doesn't appear to be much documentation about what may cause this error.

Change History (3)

comment:1 Changed 10 years ago by Gert Döring

Owner: set to jamesyonan
Status: newassigned

comment:2 Changed 10 years ago by Fahrenheit

Problem solved - .ovpn file has to be saved in "Unix" newline format (Unix line breaks). It was saved in "Mac" format, which caused the error.

Last edited 10 years ago by Fahrenheit (previous) (diff)

comment:3 Changed 9 years ago by Samuli Seppänen

Resolution: notabug
Status: assignedclosed
Note: See TracTickets for help on using tickets.