I have a TP-Link Archer C7 v2 router running OpenWRT and OpenVPN and I need to generate the encryption keys for OpenVPN. I am totally stumped by this.
What I understand is that there are three types of files
ca, ca.crt, root certificate authority
cert, client.crt, client certificate
key, client.key, client private key
and that
the server and all clients will use the same ca file
each client and the server must have their own cert (cert) and private key (key) file.
I have managed to generate a ca file:
root@OpenWrt:/etc/openvpn# easyrsa build-ca
CA creation complete. Your new CA certificate is at:
/etc/easy-rsa/pki/ca.crt
But I am totally stumped with creating the certificates and key files. Hours on the Internet have not yielded anything I could use. And I understand this should be a very simple thing to do.
How can I create these files needed for the encryption?
For several reasons. One is that I did try it and could not get it to work. Another is that Linux Mint, which I use, makes it much easier to use and configure as OpenVPN client. And another is that I already have a TP-Link Archer C7 router which has OpenVPN installed natively. With three clicks it is up and running and generates a configuration file for the client. Could not be easier.
1- Turn OpenVPN ON
2- Generate encryption keys
3- Generate configuration file for the client
Three clicks.
There must be thousands of people who have installed OpenVPN and have had to generate the necessary keys. I do not understand why this is so complicated. It should be simple and straightforward. I am beginning to understand all the people who hate Linux and the dreaded command line.
The router with OpenVPN included does all this with one click. One click. And I cannot for the life of me find a way to do it that I can manage. I get lost with different tools, different versions, long tutorials with dozens of commands... for something that can and should be done with one click. Very frustrating.