Hello,
New to the forum o7.
I'm trying to setup a VPN connection using OpenVPN Connect for our remote employees to our secondary router that I just set up (Mikrotik Cloud Core).
It's my very first time trying to deal with something like this, so apologies in advance is something doesn't make sense.
I'm following
https://wiki.mikrotik.com/wiki/Manual:Create_Certificates as a starting point for creating a Certificate Authority on the router using its public IP, a Server signed by the same CA and one Client - also signed by the same CA.
I've also gone to the router's
PPP interface and made sure that "OpenVPN Server" is enabled and on the correct port (1194). Down that selection I've used "Certificate : Server" as the authentication method, which I'm not too sure of if it's correct still.
I went to the certificates and used "Export" on Server and Client and used a passphrase on the Client so it would generate a
.key file - I was told that these three should suffice to make the connection between the OpenVPN Connect and my router.
I downloaded all three files on my desktop and edited them with Notepad+, copy pasted all the stuff in there onto my .ovpn file.
My .ovpn config file is like this :
client
dev tun
proto tcp-client
persist-key
persist-tun
tls-client
remote-cert-tls server
verb 4
auth-nocache
mute 10
remote X.X.X.X
port 1194
auth SHA1
cipher AES-256-CBC
redirect-gateway def1
auth-user-pass credentials
<ca>
stuff goes here
</ca>
<cert>
stuff goes here
</cert>
<key>
stuff goes here
</key>
Using it like this gives a weird private key error message, so I went looking for a bit and it seems that I needed openssl to convert the .key file to a RSA format. I did that with cygwin and after all the shenanigans, I get
Peer Certificate Verification Failure.
I've been trying for a couple of days and failing horribly, is there anyone who has overlapping knowledge of Mikrotik Routers and OpenVPN Connect?