Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

easyrsa build-client-full: /etc/openvpn/pki/openssl-easyrsa.cnf: No such file or directory #496

Open
ebarault opened this issue Aug 1, 2019 · 4 comments

Comments

@ebarault
Copy link

ebarault commented Aug 1, 2019

hi @kylemanna,

After your last docker image build (trigger by this unrelated commit on the Readme file) the easyrsa build-client-full command does not work anymore:

$ docker exec -it ovpn easyrsa build-client-full ebarault nopass

sed: /etc/openvpn/pki/openssl-easyrsa.cnf: No such file or directory
Easy-RSA error: Failed to update /etc/openvpn/pki/safessl-easyrsa.cnf

Sticking to kylemanna/openvpn:2.4 did it for us

cc: @krezreb

@faxmaster
Copy link

faxmaster commented Aug 26, 2019

Hello! First thanks for this image which has worked flawlessly until now!. I have the same problem using latest master... Unable to create new client certs or revoke certs. As I have aarch64 architecture that isn't built on docker hub, I'm unable to build a functioning image now... Must be an update of Easyrsa that's causing the problem.

@faxmaster
Copy link

Regenerating all pki certificates (with ovpn_initpki) solved it for me. The problem seems to come from easyrsa update from 3.0.5 to 3.0.6 which broke compatibility with previously generated certificates (see OpenVPN/easy-rsa#259)

@bwindsor
Copy link

bwindsor commented Sep 20, 2019

Just for information, https://github.com/JenswBE/wolverine/commit/59a6cb6aa226e3c40a3c3a56a841dc83e322d037 change to use the old image kylemanna/openvpn:2.4 fixed this problem for me.

@exNewbie
Copy link

exNewbie commented Oct 16, 2019

I fell into this issue and found workaround. The good point is that I didn't need to downgrade to version 2.4.

First thing first, you need to log in to the VPN container.

2 workarounds are

  • In order to satisfy easy-rsa, you need to create new folders (referred to this link)
cd /etc/openvpn/pki/
mkdir revoked; chmod 700 revoked/
cd revoked/
mkdir certs_by_serial; mkdir private_by_serial; mkdir reqs_by_serial; chmod 700 *

cd /etc/openvpn/pki/
cp -R revoked/ renewed
  • Copy the missing openssl-easyrsa.cnf
cp -a /usr/share/easy-rsa/openssl-easyrsa.cnf /etc/openvpn/pki/

You should be able to add/remove client now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants