Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946621 - dev-libs/openssl-3.3.2-r1 "Warning: Will read cert request from stdin since no -in option is given" at runtime (seen with app-crypt/dehydrated-0.7.1)
Summary: dev-libs/openssl-3.3.2-r1 "Warning: Will read cert request from stdin since n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-12-18 08:00 UTC by Ulrich Müller
Modified: 2024-12-21 09:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2024-12-18 08:00:41 UTC
When running dehydrated --cron, openssl-3.3.2-r1 now outputs warnings:

Warning: Will read cert request from stdin since no -in option is given
Warning: Will read cert request from stdin since no -in option is given
Warning: Will read cert request from stdin since no -in option is given


Reproducing from the command line:
$ openssl x509
Warning: Reading certificate from stdin since no -in or -new option is given

The openssl-x509 man page says:

       -in filename|uri
           This  specifies  the  input  to read a certificate from or the input
           file for reading a certificate request if the -req flag is used.  In
           both cases this defaults to standard input.

So this appears to be valid usage and there should be no warning.

The warning was not present with openssl-3.0.15-r1.
Comment 1 Ulrich Müller gentoo-dev 2024-12-18 08:21:54 UTC
Further investigation shows that the warnings appear with "openssl req", and that the problem has been fixed upstream in https://github.com/openssl/openssl/commit/1d2cbd9b5a126189d5e9bc78a3bdb9709427d02b.

Could this fix be backported to 3.3.2?
Comment 2 Larry the Git Cow gentoo-dev 2024-12-20 08:48:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6ad6d14757e5bf055005619b4b6333bee7101f4

commit f6ad6d14757e5bf055005619b4b6333bee7101f4
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2024-12-18 15:10:00 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2024-12-20 08:48:16 +0000

    dev-libs/openssl: Silence a warning when reading from stdin
    
    Closes: https://bugs.gentoo.org/946621
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 .../files/openssl-3.3.2-silence-warning.patch      |  34 +++
 dev-libs/openssl/openssl-3.3.2-r2.ebuild           | 305 +++++++++++++++++++++
 2 files changed, 339 insertions(+)