F
F
fantasy882019-12-23 23:56:18
openvpn
fantasy88, 2019-12-23 23:56:18

Trying to set up double OpenVpn got an error?

I coped with the first problem, the second one appeared at the end of the 5th step after generating strong Diffie-Hellman protocol keys.
Next, we can generate an HMAC signature to enhance the server's ability to check TSL integrity:
sudo openvpn --genkey --secret keys/ta.key
sudo chown openvpn-ca:openvpn-ca keys/ta.key An
error cannot access `keys/ta is thrown. key`: No surch file or directory Attached a
screenshot.5e021ae801ab9611063275.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mureevms, 2019-12-24
@fantasy88

That's why I wrote my instruction, which is less confusing and therefore more understandable, use it.
And if you answer the question, you can see that the user openvpn-cadoes not have rights to create a directory /etc/openvpn/keysand run the command openvpn --genkey --secret keys/ta.key. Execute them via sudo.

R
Radjah, 2019-12-24
@Radjah

dos2unix vars
The package with the program is called the same.

R
res2001, 2019-12-24
@res2001

Judging by the text of the error, you still do not have openssl.cnf. Just copy /usr/share/easy-rsa/openssl-1.0.0.cnf to ~/openvpn-ca directory and rename it to openssl.cnf, there should also be symlinks to easy-rsa scripts made by make-cadir ( he had to create the same config).
The original scripts and easy-rsa configs are located here: /usr/share/easy-rsa.
I usually just manually copy the contents of /usr/share/easy-rsa to my directory, because sometimes I change something in scripts for the current situation.
PS: When I decided a few years ago to set up the keys for openssl using easy-rsa for the first time, I found an error in vars that did not allow the script to work correctly, which is why other scripts did not work the same. The error has now been corrected. And the easy-rsa set for Windows is generally a song - without your own file there was nothing to catch at all.
So easy-rsa won't do you any good, just a little help and guidance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question