longzuyuan / ics-openvpn

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

Import of config file with inline certificates creates non functional config #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import a config file with an inline certificate like in the 
"Note to administrators"

What is the expected output? What do you see instead?
The generated config file has an additional "[[INLINE]]" after the opening tags.
<ca>
[[INLINE]]-----BEGIN CERTIFICATE-----
MIIHA.....
</ca>

The same happens for <cert>, <key> or <tls-auth>.

If I import the same certificate files from the settings dialog everything is 
working as expected.

What mobile phone are you using?
Galaxy S2

Which Android Version and stock ROM or aftermarket like cyanogenmod?
CM9 nightly

Please provide any additional information below.

Original issue reported on code.google.com by lars.alt...@gmail.com on 9 Jul 2012 at 10:51

GoogleCodeExporter commented 9 years ago
Experiencing the same problem. 

Import of the OVPN is successful but when trying to connect I get the error: 
"Cannot load inline certificate file: error:0906D06C:PEM 
routines:PEM_read_bio:no start line:error:140AD009:SSL 
routines:SSL_CTX_user_certificate_file:PEM lib".

The app indeed seems to add "[[INLINE]]" in front of every certificate. Not 
sure whether this is the cause of the error, but it seems likely.

Original comment by ni...@peen.net on 10 Jul 2012 at 3:15

GoogleCodeExporter commented 9 years ago
The "[[INLINE]]" is the reason why the config is not working. If I copy all 
required certificate files on the phone and import them from the openvpn gui 
the config works and the only difference in the generated config file is, that 
there is no "[[INLINE]]" in front of the certificates. 

Original comment by lars.alt...@gmail.com on 10 Jul 2012 at 7:29

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

Original comment by arne@rfc2549.org on 10 Jul 2012 at 7:54

GoogleCodeExporter commented 9 years ago
I uploaded a new version that does not have the bug of adding a [[INLINE]] 

Original comment by arne@rfc2549.org on 10 Jul 2012 at 7:56