我使用gpg只是为了加密和解密的目的。禁止在gnupg中发送警告消息
我使用的命令是:
for enc:
gpg --sign test
for dec:
gpg --decrypt test.gpg > test
,但我得到以下警告消息:
gpg: Signature made Fri Jun 24 17:29:00 2016 UTC using RSA key ID XXXX
gpg: Good signature from "[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
关我当然基于互联网搜索 --status-fd, --no-comment, --no-mdc-warning,--no-tty ,--no-verbose --quiet --batch, --no-greeting etc
尝试。
有没有办法摆脱这些警告信息?
作为最后的选择,我使用 How to hide command output in bash
但我认为应该有抑制GPG警告的简单方法。
这是非常好的。我尝试了一个类似的错误方式。 gpg --decrypt test.gpg 2>/dev/null> test 但在这种情况下,它覆盖了该文件。 但你的回答很好。 它解决了这个问题。 谢谢.. –
@ArunKuttiyaraVarghese很高兴我能帮忙:) – heemayl