[PR #940] [CLOSED] Disable warning when reading CSRs from stdin. #967

Closed
opened 2025-12-29 02:18:48 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dehydrated-io/dehydrated/pull/940
Author: @ckujau
Created: 7/15/2024
Status: Closed

Base: masterHead: bugfix/disable-stdin-warnings


📝 Commits (1)

  • 728880e Disable 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.

## 📋 Pull Request Information **Original PR:** https://github.com/dehydrated-io/dehydrated/pull/940 **Author:** [@ckujau](https://github.com/ckujau) **Created:** 7/15/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `bugfix/disable-stdin-warnings` --- ### 📝 Commits (1) - [`728880e`](https://github.com/dehydrated-io/dehydrated/commit/728880ec2732ee2afdbc711c45402efdcd2a6728) Disable warning when reading CSRs from stdin. ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `dehydrated` (+3 -3) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 02:18:48 +01:00
adam closed this issue 2025-12-29 02:18:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#967