mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 23:23:32 +01:00
[PR #940] [CLOSED] Disable warning when reading CSRs from stdin. #967
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/940
Author: @ckujau
Created: 7/15/2024
Status: ❌ Closed
Base:
master← Head:bugfix/disable-stdin-warnings📝 Commits (1)
728880eDisable warning when reading CSRs from stdin.📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
dehydrated(+3 -3)📄 Description
Coming across the same warning that was reported in
PR#929 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.