Error loading OpenVPN Profile to device

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
isofox
OpenVpn Newbie
Posts: 7
Joined: Thu Sep 10, 2015 4:58 am

Error loading OpenVPN Profile to device

Post by isofox » Thu Sep 10, 2015 5:03 am

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

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Error loading OpenVPN Profile to device

Post by Traffic » Mon Sep 14, 2015 12:07 pm

Please post Device1.ovpn ..

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

isofox
OpenVpn Newbie
Posts: 7
Joined: Thu Sep 10, 2015 4:58 am

Re: Error loading OpenVPN Profile to device

Post by isofox » Tue Sep 15, 2015 12:53 am

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!

Post Reply