From 14c3dd2e7af815fd386f7aa51e0683a0fd6f9b0d Mon Sep 17 00:00:00 2001 From: Fredrik Axelsson Date: Thu, 25 Jul 2024 10:57:51 +0200 Subject: [PATCH] Remove OpenSSL warning about reading input from stdin. --- x509-mode.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/x509-mode.el b/x509-mode.el index 673e423..6e6a391 100644 --- a/x509-mode.el +++ b/x509-mode.el @@ -618,7 +618,13 @@ Return output buffer." (coding-system-for-write 'no-conversion)) (apply #'call-process-region args)) (apply #'call-process-region args))) + ;; Since OpenSSL 3, there is a warning when reading input from stdin and + ;; not from a file specified by an -in parameter. Delete that warning + ;; line from the output. "Warning: Reading certificate from stdin since + ;; no -in or -new option is given" (goto-char (point-min)) + (if (looking-at-p "Warning: Reading ") + (delete-line)) (set-buffer-modified-p nil) (setq buffer-read-only t)) buf))