longzuyuan / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

tls-auth direction lost when importing config with inline certificates #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When importing a configuration file with inline certificates the following 
lines are removed:

tls-auth [inline] 1
ca [inline]
cert [inline]
key [inline]

Removing the last 3 is not a problem. Removing the first one however means the 
key direction is not set properly and the connection fails. The line should not 
be removed.

Original issue reported on code.google.com by ni...@peen.net on 10 Jul 2012 at 11:59

GoogleCodeExporter commented 9 years ago
I guess replacing tls-auth [inline] 1 with key-direction 1 would also work. 
Either way, current handling is incorrect.

Original comment by ni...@peen.net on 10 Jul 2012 at 12:06

GoogleCodeExporter commented 9 years ago
What exactly should [inline] be? is there really a literal [inline] in the 
openvpn config? I never seen somehting like that.

Original comment by arne@rfc2549.org on 10 Jul 2012 at 4:55

GoogleCodeExporter commented 9 years ago
It's the format as introduced in OpenVPN 2.1.

Reference:
http://forums.openvpn.net/topic7731.html

Original comment by ni...@peen.net on 10 Jul 2012 at 4:59

GoogleCodeExporter commented 9 years ago
with the lines containing [inline] removed should happily import the config. 
The lines are not required anyway. I will fix the "tls-auth [inline] direction" 
import.

Original comment by arne@rfc2549.org on 10 Jul 2012 at 5:04

GoogleCodeExporter commented 9 years ago
Thanks.

Original comment by ni...@peen.net on 10 Jul 2012 at 5:06

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7be61c58df98.

Original comment by arne@rfc2549.org on 10 Jul 2012 at 9:49