From: Magnus Larsson Content-Type: multipart/alternative; boundary="Apple-Mail=_7F69D9C8-30F8-4F14-912E-10621AED915A" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Message-Id: <6900ED88-65D7-450E-8A3A-3D9509D206AD@...2692...> Date: Wed, 17 Aug 2022 21:37:37 -0400 Subject: [Openvpn-devel] Possible bug? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net --Apple-Mail=_7F69D9C8-30F8-4F14-912E-10621AED915A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I just moved from Ubuntu 20.04 LTS (where the exact command works fine and = does not prompt for pass phrase) to Red Hat Enterprise Linux 9 and installe= d Easy-RSA via EPEL. When I run ./easyrsa build-ca nopass as root, it still prompts for PEM pass= phrase: # ./easyrsa build-ca nopass Using SSL: openssl OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec= 2021) Enter PEM pass phrase: Enter PEM pass phrase: Enter PEM pass phrase: Enter PEM pass phrase: 80DB8DBF7D7F0000:error:0480006D:PEM routines:PEM_def_callback:problems gett= ing password:crypto/pem/pem_lib.c:62: 80DB8DBF7D7F0000:error:07880109:common libcrypto routines:do_ui_passphrase:= interrupted or cancelled:crypto/passphrase.c:175: 80DB8DBF7D7F0000:error:1C80009F:Provider routines:p8info_to_encp8:unable to= get passphrase:providers/implementations/encode_decode/encode_key2any.c:11= 6: # ./easyrsa --version EasyRSA Version Information Version: 3.0.8 Generated: Wed Sep 9 15:59:45 CDT 2020 SSL Lib: OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021) Git Commit: f12e00e53b4f486ce3d119ca429198780fa694ac Source Repo: https://github.com/OpenVPN/easy-rsa # ls -l total 8 lrwxrwxrwx 1 root root 29 Aug 17 18:56 easyrsa -> /usr/share/easy-rsa/3/e= asyrsa lrwxrwxrwx 1 root root 41 Aug 17 18:56 openssl-easyrsa.cnf -> /usr/share/= easy-rsa/3/openssl-easyrsa.cnf drwx------ 9 root root 4096 Aug 17 20:10 pki -rw-r--r-- 1 root root 332 Aug 17 18:56 vars lrwxrwxrwx 1 root root 36 Aug 17 18:56 vars.example -> /usr/share/doc/eas= y-rsa/vars.example lrwxrwxrwx 1 root root 32 Aug 17 18:56 x509-types -> /usr/share/easy-rsa/= 3/x509-types # cat /etc/os-release NAME=3D"Red Hat Enterprise Linux" VERSION=3D"9.0 (Plow)" ID=3D"rhel" ID_LIKE=3D"fedora" VERSION_ID=3D"9.0" PLATFORM_ID=3D"platform:el9" PRETTY_NAME=3D"Red Hat Enterprise Linux 9.0 (Plow)" ANSI_COLOR=3D"0;31" LOGO=3D"fedora-logo-icon" CPE_NAME=3D"cpe:/o:redhat:enterprise_linux:9::baseos" HOME_URL=3D"https://www.redhat.com/" DOCUMENTATION_URL=3D"https://access.redhat.com/documentation/red_hat_enterp= rise_linux/9/" BUG_REPORT_URL=3D"https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT=3D"Red Hat Enterprise Linux 9" REDHAT_BUGZILLA_PRODUCT_VERSION=3D9.0 REDHAT_SUPPORT_PRODUCT=3D"Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION=3D"9.0" # dnf repolist Updating Subscription Management repositories. repo id = repo name codeready-builder-for-rhel-9-x86_64-rpms = Red Hat CodeReady Linux Builder for RHEL 9 x86_64 (RPMs) epel = Extra Packages for Enterprise Linux 9 - x86_64 rhel-9-for-x86_64-appstream-rpms = Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) rhel-9-for-x86_64-baseos-rpms = Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) # getenforce Disabled # uname -a Linux test 5.14.0-70.22.1.el9_0.x86_64 #1 SMP PREEMPT Tue Aug 2 10:02:12 ED= T 2022 x86_64 x86_64 x86_64 GNU/Linux Let me know if you need additional information. Thanks, Magnus --Apple-Mail=_7F69D9C8-30F8-4F14-912E-10621AED915A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi,

I just moved from Ubuntu 20.04 LTS (where = the exact command works fine and does not prompt for pass phrase) to Red Ha= t Enterprise Linux 9 and installed Easy-RSA via EPEL.
=
When I run ./easyrsa build-ca nopass as root, it still prompts= for PEM pass phrase:


# ./easyrsa build-ca nopass
Using SSL: openssl OpenSSL 3.0.1 14 Dec 2021 (= Library: OpenSSL 3.0.1 14 Dec 2021)
Enter PEM pass phrase:
Enter PEM pass phrase:
Enter PEM pass phrase:
Enter PEM pass phrase:
80DB8DBF7D7F0000= :error:0480006D:PEM routines:PEM_def_callback:problems getting password:cry= pto/pem/pem_lib.c:62:
80DB8DBF7D7F0000:error:07880109:common libcrypto routines:do_ui_pass= phrase:interrupted or cancelled:crypto/passphrase.c:175:
80DB8DBF7D7F0000:error:1C80009F:P= rovider routines:p8info_to_encp8:unable to get passphrase:providers/impleme= ntations/encode_decode/encode_key2any.c:116:

<= font face=3D"Menlo" class=3D"">
= # ./easyrsa --version
EasyRSA Version= Information
Ve= rsion:     3.0.8
Generated:   Wed Sep  9 15:59:45 CDT 2020
SSL Lib:     Ope= nSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021)
Git Commit:  f12e00e53b4f= 486ce3d119ca429198780fa694ac


# ls -l
total 8
lrwxrwxrwx 1 root root   29 Aug 17 = 18:56 easyrsa -> /usr/share/easy-rsa/3/easyrsa
lrwxrwxrwx 1 root root   41 Aug 17 = 18:56 openssl-easyrsa.cnf -> /usr/share/easy-rsa/3/openssl-easyrsa.cnf
drwx------ 9 roo= t root 4096 Aug 17 20:10 pki
-rw-r--r-- 1 root root  332 Aug 17 18:56 vars
lrwxrwxrwx 1 root root &n= bsp; 36 Aug 17 18:56 vars.example -> /usr/share/doc/easy-rsa/vars.exampl= e
lrwxrwxrwx 1 = root root   32 Aug 17 18:56 x509-types -> /usr/share/easy-rsa/3/x50= 9-types


# cat= /etc/os-release
NAME=3D"Red Hat Enterprise Linux"
VERSION=3D"9.0 (Plow)"
ID=3D"rhel"
ID_LIKE=3D"fedora"
<= font face=3D"Menlo" class=3D"">VERSION_ID=3D"9.0"
PLATFORM_ID=3D"platform:el9"
PRETTY_NAME=3D"Red Hat Ent= erprise Linux 9.0 (Plow)"
ANSI_COLOR=3D"0;31"
LOGO=3D"fedora-logo-icon"
CPE_NAME=3D"cpe:/o:redhat:enterprise_linux:9::ba= seos"
BUG_REPORT_URL=3D"https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT=3D"Red Hat Enterprise Lin= ux 9"
REDHAT_BU= GZILLA_PRODUCT_VERSION=3D9.0
REDHAT_SUPPORT_PRODUCT=3D"Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_V= ERSION=3D"9.0"
=

# dnf repolist
Updating Subscription Management repositories.
repo id         =                      = ;                     &nb= sp;                repo name=
codeready-builder-for= -rhel-9-x86_64-rpms                =                   Red Hat Cod= eReady Linux Builder for RHEL 9 x86_64 (RPMs)
<= font face=3D"Menlo" class=3D"">epel           &nbs= p;                     &n= bsp;                     =                 Extra Packages for = Enterprise Linux 9 - x86_64
rhel-9-for-x86_64-appstream-rpms         &= nbsp;                    =             Red Hat Enterprise Linux 9 for x= 86_64 - AppStream (RPMs)
rhel-9-for-x86_64-baseos-rpms           =                      = ;              Red Hat Enterprise Linux = 9 for x86_64 - BaseOS (RPMs)


# getenforce
Disabled


# uname -a
Linux test 5.14.0-70.22.1.el9_0.x86_64 #1 SMP PREEMPT Tue A= ug 2 10:02:12 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux


Let me know if you need additi= onal information.

Thanks,
Magnus

= --Apple-Mail=_7F69D9C8-30F8-4F14-912E-10621AED915A--