Android ovpn file

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jmcgee
OpenVpn Newbie
Posts: 2
Joined: Fri Aug 30, 2019 5:56 pm

Android ovpn file

Post by jmcgee » Fri Aug 30, 2019 6:07 pm

I am trying for a day, and searching via google. I cannot get a working ovpn file for my Android. It is connecting via duckdns to my tomato router at the house. What am I missing. It complains Failed to import profile Selected file has incorrect profile,. configuration [inline, [inline],[inline] [inline]

I see 4 inline in error but I only have 3 inline.

Here is the contents of Androidclient.ovpn:


[olog]client
dev tun
remote mydomain.duckdns.org 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca [inline]
cert [inline]
key [inline]
verb 1
keepalive 10 120
port 1194
proto udp
cipher AES-256-CBC
comp-lzo
remote-cert-tls server
key-direction 1
<ca>
-----BEGIN CERTIFICATE-----
MIIE/jCCA+agAwIBAgIUGwxo3+QiwSyR5o4PnnvJCHtLY+AwDQYJKoZIhvcNAQEL
...
zJAe082UxXP9Ky0cPa0ZgHc2YjfA024X/0ob38rRCivNJA==
-----END CERTIFICATE-----
</ca>
<cert>
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=US, ST=TX, L=FW, O=anotherone, OU=MyOrganizationalUnit, CN=anotherone CA/name=EasyRSA/emailAddress=me@myhost.mydomain
Validity
Not Before: Aug 29 02:08:41 2019 GMT
Not After : Aug 26 02:08:41 2029 GMT
Subject: C=US, ST=TX, L=FW, O=anotherone, OU=MyOrganizationalUnit, CN=Jackphone1/name=EasyRSA/emailAddress=me@myhost.mydomain
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:ef:6e:bd:2d:95:85:03:f1:6d:df:ce:a3:37:4e:
ce:19:f7:7b:13:95:95:78:b4:be:97:ba:3c:29:ad:
36:3d:82:02:e9:c1:4e:41:be:ee:a8:f8:b8:ff:86:
6c:d2:1b:4f:4c:ff:b6:03:15:2b:c6:ea:15:63:a7:
8f:6b:e8:23:3f:e5:a9:41:b7:91:6f:4f:99:36:86:
8b:c2:4d:a8:42:d4:35:ce:52:89:5f:79:c1:a1:77:
4c:c9:fc:89:8d:e6:78:ae:ce:ee:bf:d2:e6:19:0c:
59:cd:73:51:66:14:aa:39:60:49:96:68:f1:bb:db:
1e:ad:f8:26:77:b8:c7:79:fc:74:67:40:a3:eb:70:
af:dd:5f:09:19:1d:9c:62:d5:1c:3a:2d:22:ab:d3:
48:e8:6f:c7:35:27:6c:99:a4:e4:47:d6:7d:3a:ad:
13:70:8f:4a:7f:74:24:b5:4c:0d:f3:89:0d:59:26:
1a:7f:14:a4:f0:3f:83:ba:9d:7b:9d:d9:7c:df:a3:
c4:ec:a1:d7:a5:bd:f3:19:4f:62:1f:85:b5:01:b5:
3a:31:03:c9:9a:d0:dd:d1:3d:4d:6f:c2:9e:e5:63:
18:49:77:97:cb:4e:12:c5:50:b6:90:a2:30:63:6f:
49:24:79:a8:da:fb:f7:e0:59:a7:7a:9e:c2:dd:8a:
96:0b
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
Easy-RSA Generated Certificate
X509v3 Subject Key Identifier:
8C:CB:29:EE:D5:B7:3E:D1:35:56:37:D0:B6:9E:FD:0D:C6:FA:02:E2
X509v3 Authority Key Identifier:
keyid:02:83:56:1A:C0:DC:4F:6F:40:88:F7:AA:2F:7D:91:C0:ED:41:E1:07
DirName:/C=US/ST=TX/L=FW/O=anotherone/OU=MyOrganizationalUnit/CN=anotherone CA/name=EasyRSA/emailAddress=me@myhost.mydomain
serial:1B:0C:68:DF:E4:22:C1:2C:91:E6:8E:0F:9E:7B:C9:08:7B:4B:63:E0

X509v3 Extended Key Usage:
TLS Web Client Authentication
X509v3 Key Usage:
Digital Signature
X509v3 Subject Alternative Name:
DNS:Jackphone1
Signature Algorithm: sha256WithRSAEncryption
0b:86:d2:3b:d7:27:c7:4f:32:8e:d5:c5:9b:73:d1:96:5a:76:
10:a6:0a:0c:a8:de:c7:52:33:ae:be:55:61:1a:f2:9a:cf:33:
af:60:d6:c0:92:90:57:82:65:cf:6c:18:7d:14:69:7c:4a:fd:
52:87:38:fd:59:6d:a0:2a:d6:7a:ee:78:2e:f7:50:c7:cf:af:
17:49:02:f7:49:fb:14:8b:1f:9c:51:b1:4e:0e:ac:77:9b:78:
16:68:07:dc:b3:24:83:6b:87:cd:c9:9b:a9:fe:71:20:60:2b:
2e:22:c1:ad:3c:d7:9a:6b:9e:e4:da:e0:68:39:54:d9:ae:74:
e0:5d:2f:2e:9d:4c:23:98:b0:5f:d0:b3:5e:86:86:72:a5:cb:
3e:e2:d9:aa:bf:90:67:a2:06:a2:a2:0e:27:34:8c:7c:b1:08:
c9:c8:57:b0:4a:1e:57:a7:3c:06:de:1f:8f:99:f1:3d:6d:e3:
a0:a8:01:93:f5:92:9c:fa:94:e0:4a:e9:81:69:d2:46:5d:03:
59:94:b7:2e:b2:e1:97:ed:b5:16:10:a4:12:41:ce:f5:5e:c9:
df:42:c5:97:58:fa:d2:bf:fd:f4:d0:0a:3c:bf:fe:0d:79:69:
60:2d:3b:64:26:d9:d2:74:ce:f6:a6:98:34:a5:9b:af:61:9f:
22:13:3e:bd
-----BEGIN CERTIFICATE-----
MIIFTTCCBDWgAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBqDELMAkGA1UEBhMCVVMx
...
2dJ0zvammDSlm69hnyITPr0=
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDvbr0tlYUD8W3f
...
R84ZLAen2p4Z9+Dcf6BiChIw
-----END PRIVATE KEY-----
</key>[/olog]

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5920
Joined: Fri Jun 03, 2016 1:17 pm

Re: Android ovpn file

Post by TinCanTech » Fri Aug 30, 2019 7:40 pm

jmcgee wrote:
Fri Aug 30, 2019 6:07 pm
ca [inline]
cert [inline]
key [inline]
This is incorrect.

jmcgee
OpenVpn Newbie
Posts: 2
Joined: Fri Aug 30, 2019 5:56 pm

Re: Android ovpn file

Post by jmcgee » Fri Aug 30, 2019 8:08 pm

What is incorrect?

Post Reply