openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl.cnf

Scripts to manage certificates or generate config files

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

Post Reply
neil4u100
OpenVpn Newbie
Posts: 2
Joined: Sun Oct 26, 2014 8:27 am

openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl.cnf

Post by neil4u100 » Sun Oct 26, 2014 8:33 am

Hi Admins,

Am new to this forum so please forgive me if any of my questions are wrong.

My Setup is like this:

Client: Windows 7 Enterprise 64-bit
Open VPN version: 2.3.4

Server: Windows server 2008 R2 Datacenter 64-bit
Open VPN version: 2.3.4

Am stuck at the build-key command wizard which is giving me an error message - Can't open config file /etc/ssl/openssl.cnf and the cursor gets back to the prompt without any message.

I have already run the "init-config" and the "vars" file is ready.

How to overcome this SSL error ? If anyone has any guide or faced this issue before - Please share the steps in detail.

Once the client setup finishes, I will move to the configuration of server.

Thanks in advance.

Regards
Neil

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl

Post by maikcat » Sun Oct 26, 2014 9:34 am

/etc/ssl path on windows???

init-config & vars files where .bat?

Michael.

neil4u100
OpenVpn Newbie
Posts: 2
Joined: Sun Oct 26, 2014 8:27 am

Re: openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl

Post by neil4u100 » Sun Oct 26, 2014 12:57 pm

It looks like the easy-rsa scripts are not working as they should be in the current version of openvpn. Any script which I use throws me the same error of "Cant open file /etc/ssl/openssl.cnf".

At first even I was surprised with this UNIX directory structure in the script which is being used for windows configuration.

Please suggest if I can change any variable ?

Besides, I used the linux version of openvpn and created the client and server key and certificate files and imported them to the respective windows servers. But when I connect to the server, am getting the TLS key error waiting for 60 seconds.

I opened port forwarding on my cisco router and also enabled UDP port 1194 on both server side and client side.

Any suggestions.

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl

Post by Traffic » Sun Oct 26, 2014 8:42 pm

@ neil4u100

If you are creating a new PKI from scratch I would advise you download EasyRSA3-rc2

donphillipe
OpenVpn Newbie
Posts: 3
Joined: Thu Oct 30, 2014 3:27 am

Re: openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl

Post by donphillipe » Thu Oct 30, 2014 5:40 am

I am trying to build a home network link to dd-wrt OpenVPN server. The only documentation for how to do this is before the introduction of this PKCS11. (http://www.howtogeek.com/64433/how-to-i ... rt-router/) I don't think this is even built into the dd-wrt OpenVPN server, or not to my knonwledge.

I do know the errors are constant when you set the two entries:

set KEY_NAME=
set KEY_OU=

Is the OpenVPN Server before this PKCS11 requirement still compatible with newer clients and visa versa?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: openvpn 2.3.4 build-key Can't open file /etc/ssl/openssl

Post by Traffic » Thu Oct 30, 2014 11:21 pm

maikcat wrote:/etc/ssl path on windows???
I have also seen this on windows .. I copied the c:\program files\openvpn\bin\openssl.cnf file to c:\etc\ssl\openssl.cnf to resolve this particular problem. Although, that was only included in openvpn 2.2.2 as I recall.

@ donphillipe .. perhaps you could try that ^^ as well ..

Post Reply