]> git.ipfire.org Git - thirdparty/dehydrated.git/commit
Disable warning when reading CSRs from stdin.
authorChristian Kujau <github@nerdbynature.de>
Sun, 14 Jul 2024 22:21:23 +0000 (00:21 +0200)
committerLukas Schauer <lukas@schauer.dev>
Mon, 14 Apr 2025 17:42:15 +0000 (19:42 +0200)
commite973cb2d8ab2c5708f596d7ceefd38f9c1789493
tree63487efffe0f3151f8a7db855705bdec687cb6fd
parent7c438c484f7c7a2ea9a779f4fb579d3b513c2a6f
Disable warning when reading CSRs from stdin.

Coming across the same warning that was reported in
[PR#929](https://github.com/dehydrated-io/dehydrated/pull/929 "Suppress
openssl warning about reading from stdin") this is my attempt to disable
this warning. Instead of discarding stderr in total (this can still be
useful), we just use the "-in" parameter as hinted in the warning:

 $ foo=$(cat req.csr)
 $ <<<${foo} openssl req -noout -verify > /dev/null; echo $?
 Warning: Will read cert request from stdin since no -in option is given
 0

 $ <<<${foo} openssl req -in - -noout -verify > /dev/null; echo $?
 0
dehydrated