Not able to connect with remote-cert-tls server but it's suggested... why ?
Posted: Mon Apr 19, 2021 7:17 pm
Hi to all,
I have installer OpenVPN Access Server successfully on Docker.
I try to optimise ovpn configuration file with the error message displayed.
During connection, i see this error message :
WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
So i just replace ns-cert-type server BY remote-cert-tls server and i have the following error :
[olog]Mon Apr 19 20:50:01 2021 Certificate does not have key usage extension
Mon Apr 19 20:50:01 2021 VERIFY KU ERROR
Mon Apr 19 20:50:01 2021 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Mon Apr 19 20:50:01 2021 TLS_ERROR: BIO read tls_read_plaintext error
Mon Apr 19 20:50:01 2021 TLS Error: TLS object -> incoming plaintext read error
Mon Apr 19 20:50:01 2021 TLS Error: TLS handshake failed[/olog]
Someone can tell me how to fix it please ?
The ovpn file below :
I have installer OpenVPN Access Server successfully on Docker.
I try to optimise ovpn configuration file with the error message displayed.
During connection, i see this error message :
WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
So i just replace ns-cert-type server BY remote-cert-tls server and i have the following error :
[olog]Mon Apr 19 20:50:01 2021 Certificate does not have key usage extension
Mon Apr 19 20:50:01 2021 VERIFY KU ERROR
Mon Apr 19 20:50:01 2021 OpenSSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Mon Apr 19 20:50:01 2021 TLS_ERROR: BIO read tls_read_plaintext error
Mon Apr 19 20:50:01 2021 TLS Error: TLS object -> incoming plaintext read error
Mon Apr 19 20:50:01 2021 TLS Error: TLS handshake failed[/olog]
Someone can tell me how to fix it please ?
The ovpn file below :
Code: Select all
cipher AES-256-CBC
setenv FORWARD_COMPATIBLE 1
client
proto udp
nobind
remote 1XX.XXX.XXX.XXX
port XXXXXXXX
dev tun
dev-type tun
ns-cert-type server
setenv opt tls-version-min 1.0 or-highest
reneg-sec 604800
sndbuf 0
rcvbuf 0
auth-user-pass
comp-lzo no
verb 3
setenv PUSH_PEER_INFO
<ca>
.............
</ca>
<cert>
.............
</cert>
<key>
............
</key>
key-direction 1
<tls-auth>
............
</tls-auth>
cipher AES-256-GCM
## -----BEGIN RSA SIGNATURE-----
## -----END CERTIFICATE-----