Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Support forum for Easy-RSA certificate management suite.

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

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sat Nov 13, 2021 9:12 pm

Thanks Richard. How tu use the patch please ?

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sat Nov 13, 2021 9:38 pm

How to edit precisely the source file to make the replacement ?
Notepad++ for example (https://notepad-plus-plus.org/) ?

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sat Nov 13, 2021 9:50 pm

Replacement done with Notepad++

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

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Sat Nov 13, 2021 10:02 pm

This change will not fix your issue but it will help us to figure out what is going wrong..

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sat Nov 13, 2021 10:21 pm

After the replacement in line 1738, now I obtain this :

Code: Select all

# ./easyrsa build-ca nopass

Easy-RSA error:

Missing x509-types folder

EasyRSA Shell

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

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Sat Nov 13, 2021 11:02 pm

That is exactly the result I was expecting.

Please change this (line:1745):

Code: Select all

		die "Missing x509-types folder"
to this:

Code: Select all

		die "Missing x509-types folder: $EASYRSA/x509-types"
and try once more..

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sun Nov 14, 2021 9:21 am

OK, I try this modification.
Last edited by valorisa34 on Sun Nov 14, 2021 11:08 am, edited 1 time in total.

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sun Nov 14, 2021 10:21 am

Hello Richard,
The last result with modification : ' die "Missing x509-types folder: $EASYRSA/x509-types" '

Code: Select all

C:\PROGRA~1\OpenVPN\easy-rsa>easyrsa-start.bat

Welcome to the EasyRSA 3 Shell for Windows.
Easy-RSA 3 is available under a GNU GPLv2 license.

Invoke './easyrsa' to call the program. Without commands, help is displayed.

EasyRSA Shell
# ./easyrsa init-pki

Easy-RSA error:

Missing x509-types folder: /cygdrive/c/PROGRA~1/OpenVPN/easy-rsa/x509-types

EasyRSA Shell
#
You can see /cygdrive/c because I have Cygwin installed for several months.

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

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Sun Nov 14, 2021 1:52 pm

valorisa34 wrote:
Sun Nov 14, 2021 10:21 am
Easy-RSA error:

Missing x509-types folder: /cygdrive/c/PROGRA~1/OpenVPN/easy-rsa/x509-types
I believe Easy-RSA shell does not understand your drive naming format.

Try a different disk or something..

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

Re: openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Sun Nov 14, 2021 2:39 pm

If you care to join me on IRC, there are some tests we could try ..

https://web.libera.chat/ channel #tincantech

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Sun Nov 14, 2021 4:49 pm

Ok. Asap with my PC. Thanks.

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

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Mon Nov 15, 2021 8:52 pm

If you find time to test then please test these two commands:

Code: Select all

pwd
echo $PWD
thanks.

Ref: https://github.com/OpenVPN/easy-rsa/issues/467

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Mon Nov 15, 2021 10:26 pm

Code: Select all

EasyRSA Shell
# pwd
C:/EasyRSA3

EasyRSA Shell
# echo $PWD
C:/EasyRSA3

EasyRSA Shell
#

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Mon Nov 15, 2021 10:42 pm

For the OpenVPN client, I use a Android smartphone from which I've installed 'OpenVPN Connect' from Play Store.

The log gives :

Code: Select all

22:49:05.697 -- Transport Error: UDP connect error on '***********.ddnsfree.com:1194' ([**************************]:1194): Network is unreachable

22:49:05.697 -- Client terminated, restarting in 2000 ms...

22:49:07.698 -- EVENT: RECONNECTING

22:49:07.703 -- EVENT: RESOLVE

22:49:07.713 -- Contacting ***************:1194 via UDP

22:49:07.714 -- EVENT: WAIT

22:49:07.717 -- Connecting to [**********.ddnsfree.com]:1194 (***************) via UDPv4

23:32:20.209 -- EVENT: RECONNECTING

23:32:20.211 -- EVENT: RESOLVE

23:32:20.219 -- Contacting ******************:1194 via UDP

23:32:20.220 -- EVENT: WAIT

23:32:20.222 -- Connecting to [********************.ddnsfree.com]:1194 (*****************) via UDPv4

23:32:24.920 -- EVENT: DISCONNECTED

23:32:24.921 -- Tunnel bytes per CPU second: 0

23:32:24.921 -- ----- OpenVPN Stop -----

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

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Mon Nov 15, 2021 10:55 pm

See your server log for errors.

valorisa34
OpenVPN User
Posts: 22
Joined: Fri Nov 12, 2021 9:39 am

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by valorisa34 » Tue Nov 16, 2021 8:24 pm

I post the new problem in another place.

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

Re: Windows 11 - openssl-easyrsa.cnf not found in easy-rsa 3

Post by TinCanTech » Tue Nov 16, 2021 9:39 pm

Also, because you are using Windows, make sure you open Port UDP:1194 for openvpn , in your server firewall.

Post Reply