I am pretty sure there is a problem with OpenVPN Server running on RouterOS when you choose “require-client-certificate”.
I tested several times using different chain of certificates.
The weird thing is that if you try the same configuration and certificates on version 5.26 (OpenVPN Server) it works, but when you do the same on version 6.18 it does not work.
Error: “TLS failed”.
I test with two types of OpenVPN clients: RouterOS and Windows. The result is the same.
The certificates are signed by the same CA.
I imported the CA, the client and server certificate (including the private keys of each one) to each RouterOS and make sure that the NTP client was updated correctly. But the result is the same: TLS failed.
New OpenVPN server configured in 6.18 router confirmed working here with Require Client Certificate checked, using self-signed certificates generated by XCA in Ubuntu. Testing client was OpenVPN GUI software client for Windows (OpenVPN.net).
This might not be your problem, but make sure your certificates (both CA and server) are present, and show status KAT for CA, and KT for server. The TLS error will occur at the client if the certificates have been imported into the server router but the associated key (PEM) files have not been imported/applied. In that case you don’t see the K in the certificate status line.
I find the verbose output of the OpenVPN client for Windows running in a terminal window (instead of using the GUI) helpful for troubleshooting.
Another problem: after successful implementation generating the certificates on one RouterOS, when I try to use the exported certificates with OVPN (require-client-certificate checked) in another RouterOS (including all the private keys) the error appear again: “TLS FAILED”.
I can confirm that problem. In my environment RB2011 works as OVPN server, windows clients. Certificates were generated in Microsoft CA (Windows Server 2008 R2) and in second environment on OpenSSL.
If CRL is defined and option require-client-certificate is set then clients can not establish connection.
I tried to develop problem two times when I found it after upgrade (from 6.1 to 6.15) and after that when I’ve build from scratch separate clean environment for this test. So it is not bad luck.
I checked that CRL file is downloaded from my CRL distribution point.
If I generate certificate without CRL option it works with option: require-client-certificate.
For now I’ve tested RouterOS: 6.15, 6.18, 6.19
Problem was send to Mikrotik:
[Ticket#2014082766000625]
If anyone have any idea how to develop this problem i can do more tests.
EDIT:
For now I’ve tested RouterOS: 6.15, 6.18, 6.19, 6.20
I use RB750GL as OVPN server. I try to make certificates with openssl (follow the wiki) and want to use its with “required client sertificate” option check, and always got “TSL handshake failed” error. What’s the problem?
I have two moments to understand:
do I need to import ca.key or just ca.crt only to my router?
if I have to create certificates with CRL option disabled, how can I do this with openssl?
I use RB750GL as OVPN server. I try to make certificates with openssl (follow the wiki) and want to use its with “required client sertificate” option check, and always got “TSL handshake failed” error. What’s the problem?
I have two moments to understand:
do I need to import ca.key or just ca.crt only to my router?
if I have to create certificates with CRL option disabled, how can I do this with openssl?
Guys, this is my first time trying to get OpenVPN setup on my Mikrotik.
I’ve read through the Wiki and I find the information vague and haven’t had success.
Can someone provide me a concise guide to setting up OpenVPN?
The Mikrotik router is 10.0.10.1.
I’m confused about generating certificates. Can I just create them on the router?
I’ve also found this thread and am thinking to myself “Oh great, I can’t tell if it’s my unfamiliarity with RouterOS or a bug in the software.”
v6.20, RB750G
but why this info is not in wiki?
that’s the third way I try to create certificates - openvpn(easy-rsa), openssl and in RouterOS.
and no one works
ok, I can create certificates with my rb750gl (without any load, espessially torrents, timeout is gone ),
but I still got tls error about 60 sec timout - connection failed.
crl on my certificate is absent.