Is there any way to disable console message "writing RSA key"?
$ openssl rsa -pubout -outform DER -inform PEM -in /tmp/res/chrome.pem -out 1 > /dev/null
writing RSA key
$ openssl rsa -pubout -outform DER -inform PEM -in /tmp/res/chrome.pem -out 1
writing RSA key
$ openssl rsa -pubout -outform DER -inform PEM -in /tmp/res/chrome.pem > /dev/null
writing RSA key
I tried those commands, with same result :(
Running the command with strace
shows that the message is written to STDERR
:
write(2, "writing RSA key\n", 16) = 16
^
so you have to redirect STDERR
instead of STDOUT
:
openssl rsa -pubout ... 2>/dev/null
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With