G
G
Galdar Turin2019-02-02 14:36:09
openvpn
Galdar Turin, 2019-02-02 14:36:09

Open VPN. Why does the client give a connection error?

There is an OpenVPN server that functions, runs on Linux. And a Windows client on which OpenVPN is installed.
The client gives an error:

client error
5c557e840dd0d103939825.png
client log
5c557ea773728315589879.png

The line with the error pointed to by the log:
the file pointed to by the log
5c557f0366066690163499.png

Once upon a time there was a similar error, it helped to reinstall the OpenVPN server and CA server, but now I'm at a loss, how and why, I ask for a helping hand .
OpenVPN server config
# Which local IP address should OpenVPN
# listen on? (optional)
;local a.b.c.d
port 1194
# TCP or UDP server?
proto tcp
explicit-exit-notify 0 # Для протокола tcp
;proto udp
;dev tap
dev tun
ca ca.crt
cert ServerITDO.crt
key ServerITDO.key  # This file should be kept secret
dh dh.pem
;topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
;client-to-client
;duplicate-cn
keepalive 10 120
tls-auth ta.key 0 # This file is secret
key-direction 0
cipher AES-256-CBC
auth SHA256
;compress lz4-v2
;push "compress lz4-v2"
;comp-lzo
;max-clients 100
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
log-append  openvpn.log
verb 5
;mute 20
;crl-verify crl.pem

OpenVPN client config
client
;dev tap
dev tun
;dev-node MyTap
proto tcp
;proto udp
remote 192.168.1.90 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nogroup
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
;ca ca.crt
;cert client.crt
;key client.key
remote-cert-tls server
tls-auth ta.key 1
cipher AES-256-CBC
auth SHA256
key-direction 1
#comp-lzo
verb 5
;mute 20
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf


I'm testing locally.
Complains about the key ca ca.crt, but that doesn't suit me xs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2019-02-02
@Galdar

I understand you have an android client?
Certificates must be specified as follows:

<ca>
# script-security 2
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
-------BEGIN CERTIFICATE-----
....
-------END CERTIFICATE-----
</ca>

Similarly for other options containing links to key files (ca, cert, key).
As far as I can see, you are missing the opening tag - . These are typical xml tags - there must be a start tag and an end tag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question