Page 2 of 2

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

Posted: Sat Nov 13, 2021 9:12 pm
by valorisa34
Thanks Richard. How tu use the patch please ?

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

Posted: Sat Nov 13, 2021 9:38 pm
by valorisa34
How to edit precisely the source file to make the replacement ?
Notepad++ for example (https://notepad-plus-plus.org/) ?

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

Posted: Sat Nov 13, 2021 9:50 pm
by valorisa34
Replacement done with Notepad++

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

Posted: Sat Nov 13, 2021 10:02 pm
by TinCanTech
This change will not fix your issue but it will help us to figure out what is going wrong..

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

Posted: Sat Nov 13, 2021 10:21 pm
by valorisa34
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

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

Posted: Sat Nov 13, 2021 11:02 pm
by TinCanTech
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..

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

Posted: Sun Nov 14, 2021 9:21 am
by valorisa34
OK, I try this modification.

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

Posted: Sun Nov 14, 2021 10:21 am
by valorisa34
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.

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

Posted: Sun Nov 14, 2021 1:52 pm
by TinCanTech
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..

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

Posted: Sun Nov 14, 2021 2:39 pm
by TinCanTech
If you care to join me on IRC, there are some tests we could try ..

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

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

Posted: Sun Nov 14, 2021 4:49 pm
by valorisa34
Ok. Asap with my PC. Thanks.

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

Posted: Mon Nov 15, 2021 8:52 pm
by TinCanTech
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

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

Posted: Mon Nov 15, 2021 10:26 pm
by valorisa34

Code: Select all

EasyRSA Shell
# pwd
C:/EasyRSA3

EasyRSA Shell
# echo $PWD
C:/EasyRSA3

EasyRSA Shell
#

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

Posted: Mon Nov 15, 2021 10:42 pm
by valorisa34
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 -----

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

Posted: Mon Nov 15, 2021 10:55 pm
by TinCanTech
See your server log for errors.

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

Posted: Tue Nov 16, 2021 8:24 pm
by valorisa34
I post the new problem in another place.

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

Posted: Tue Nov 16, 2021 9:39 pm
by TinCanTech
Also, because you are using Windows, make sure you open Port UDP:1194 for openvpn , in your server firewall.