Possible bug?
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 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: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:116:
# ./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/easyrsa 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/easy-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="Red Hat Enterprise Linux" VERSION="9.0 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.0" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat Enterprise Linux 9.0 (Plow)" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/" BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_BUGZILLA_PRODUCT_VERSION=9.0 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="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 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
Let me know if you need additional information.
Thanks,
Magnus
Am 18.08.22 um 03:37 schrieb Magnus Larsson via Openvpn-devel:
Quoted 3 lines
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 installed Easy-RSA via EPEL.
Probably old keys with now unsupported RC4 encryption in OpenSSL 3. You will have to make OpenSSL to load the legacy provider.
Arne
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Magnus,
can you report this as an issue on github, please ?
https://github.com/OpenVPN/easy-rsa/issues
My first guess would be the version of openssl 3.0.1 is at fault.
Thanks,
Richard
Sent with Proton Mail secure email.
------- Original Message -------
Quoted 88 lines · Magnus Larsson via Openvpn-devel
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 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: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:116:# ./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/easyrsalrwxrwxrwx 1 root root 41 Aug 17 18:56 openssl-easyrsa.cnf ->/usr/share/easy-rsa/3/openssl-easyrsa.cnfdrwx------ 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/easy-rsa/vars.examplelrwxrwxrwx 1 root root 32 Aug 17 18:56 x509-types ->/usr/share/easy-rsa/3/x509-types# cat /etc/os-release NAME="Red Hat Enterprise Linux" VERSION="9.0 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.0" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat Enterprise Linux 9.0 (Plow)" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/" BUG_REPORT_URL="https://bugzilla.redhat.com/"REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_BUGZILLA_PRODUCT_VERSION=9.0 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="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 9x86_64(RPMs) epel Extra Packages for Enterprise Linux 9 -x86_64rhel-9-for-x86_64-appstream-rpms Red Hat Enterprise Linux 9 forx86_64- AppStream (RPMs) rhel-9-for-x86_64-baseos-rpms Red Hat Enterprise Linux 9 forx86_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 EDT 2022x86_64x86_64x86_64GNU/Linux
Quoted 5 lines
Let me know if you need additional information.
Thanks,
Magnus
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail
wsBzBAEBCAAGBQJi/gHXACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ3FpAf9FRWGhWLwzc8ONkqdMM0yts3GHGMhQ6ZqzILJjLh4Udgn5NlI IV7InwTHZZm7IE6q4IWhzSqGA/KjIc23Xydsz29Vh0BDoDDZemeXkjYdxCQd gRDIMuzMLTqCQIoI9FqeWKKQW9r5cG9qwIpUwiBh2BUmub2D0hb7P0SVEWur +moGPLU1neXIhlL2F6hbTqtl/wNxr2V5qLfODrRJpiEyKQNa1C8GvvqXJR2r BYRA2vyoFIGn+krBMBb2lcExGhioWr4gzecFolqOin9e/i3pCCii1Xl4/XI5 BqHP31VoNmc88CLmOhSn/At3kagcnou9WDsA8DbJabW1/MPeGjKpXQ== =ukTL
-----END PGP SIGNATURE-----
Thanks a lot, will do!
On August 18, 2022, at 05:10, tincantech <[email protected]...> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Magnus,
can you report this as an issue on github, please ?
https://github.com/OpenVPN/easy-rsa/issues
My first guess would be the version of openssl 3.0.1 is at fault.
Thanks,
Richard
Sent with Proton Mail secure email.
------- Original Message -------
Quoted 88 lines · Magnus Larsson via Openvpn-devel
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 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: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:116:# ./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/easyrsa 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/easy-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="Red Hat Enterprise Linux" VERSION="9.0 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.0" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat Enterprise Linux 9.0 (Plow)" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos" HOME_URL="https://www.redhat.com/" DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/" BUG_REPORT_URL="https://bugzilla.redhat.com/"REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_BUGZILLA_PRODUCT_VERSION=9.0 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="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 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
Quoted 5 lines
Let me know if you need additional information.
Thanks,
Magnus
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail
wsBzBAEBCAAGBQJi/gHXACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ3FpAf9FRWGhWLwzc8ONkqdMM0yts3GHGMhQ6ZqzILJjLh4Udgn5NlI IV7InwTHZZm7IE6q4IWhzSqGA/KjIc23Xydsz29Vh0BDoDDZemeXkjYdxCQd gRDIMuzMLTqCQIoI9FqeWKKQW9r5cG9qwIpUwiBh2BUmub2D0hb7P0SVEWur +moGPLU1neXIhlL2F6hbTqtl/wNxr2V5qLfODrRJpiEyKQNa1C8GvvqXJR2r BYRA2vyoFIGn+krBMBb2lcExGhioWr4gzecFolqOin9e/i3pCCii1Xl4/XI5 BqHP31VoNmc88CLmOhSn/At3kagcnou9WDsA8DbJabW1/MPeGjKpXQ==
=ukTL
-----END PGP SIGNATURE-----
<publickey - [email protected]... - 0x09BC3D44.asc><publickey - [email protected]... - 0x09BC3D44.asc.sig>