[Solved] Cannot create client certificate

Support forum for Easy-RSA certificate management suite.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Locked
MarianH
OpenVpn Newbie
Posts: 4
Joined: Sun Feb 25, 2018 2:34 pm

[Solved] Cannot create client certificate

Post by MarianH » Sat Mar 17, 2018 3:35 pm

Hello everyone,

I use Windows 7. Installed the easy-rsa tools, created ca, server and client certificate, DH, etc., everything as it is described in these how tos https://openvpn.net/index.php/open-sour ... o.html#pki.

However now (after some time before the first creation) I would need to create another client certificate (to add new client to the VPN) and this doesn't work. I have all certificates stored in the 'keys' folder in easy-rsa (ca, server cert., etc.), but when starting the cmd as administrator and writing build-key client2 (I haven't entered all the previous steps as I already have the ca and server cert. created), it gives me the below messages:

Code: Select all

req: Option -config needs a value
req: Use -help for summary.
ca: Cannot open input file \client2.csr, No such file or directory
ca: Use -help for summary.
Could Not Find C:\*.old
Any idea what the issue is and how can I avoid this and create a new client certificate, please?

Thanks.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Cannot create client certificate

Post by TinCanTech » Sat Mar 17, 2018 3:52 pm

You did run vars.bat first .. ?

I would also recommend:
https://github.com/OpenVPN/easy-rsa/releases

MarianH
OpenVpn Newbie
Posts: 4
Joined: Sun Feb 25, 2018 2:34 pm

Re: Cannot create client certificate

Post by MarianH » Sat Mar 17, 2018 7:25 pm

Thanks TinCanTech! No, I haven't. I've did that and it needed some more tweaking (pointing to an incorrect 'home' directory for some reason), but after correcting that, worked like a charm.
Thanks a lot once more!

Locked