Page 1 of 1

Error loading OpenVPN Profile to device

Posted: Thu Sep 10, 2015 5:03 am
by isofox
Hello,

I'm trying to load OpenVPN profile to my device but i get the following error on OpenVPN app:

Error Loading profile: Device1.ovpn
option_error: option <tls-auth> was not properly closed out

Does anybody know what this error means and how to fix it?

I followed this tutorial to setup OpenVPN on raspberry pi:

http://www.bbc.com/news/technology-33548728

side note: did not get any errors when generating/building keys or certificates

Re: Error loading OpenVPN Profile to device

Posted: Mon Sep 14, 2015 12:07 pm
by Traffic
Please post Device1.ovpn ..

Or check that you have do this correctly:
https://community.openvpn.net/openvpn/wiki/IOSinline

Re: Error loading OpenVPN Profile to device

Posted: Tue Sep 15, 2015 12:53 am
by isofox
Figured it out. I did indeed forgot to properly close <tls-auth> in the MakeOPVN.sh script file.

Was missing the following line in my file:

Code: Select all

echo "</tls-auth>" >> $NAME$FILEEXT 
Added the missing line and ran the script again. This time the profile uploaded successfully and I was able to connect to vpn server.

Problem solved!