rnpgp / rnp

RNP: high performance C++ OpenPGP library used by Mozilla Thunderbird
https://www.rnpgp.org
Other
194 stars 55 forks source link

Prune spurious 'keyring not found' output shown on every single command #11

Closed ronaldtse closed 4 years ago

ronaldtse commented 7 years ago

Almost every command with netpgp shows up with this output preceding any action (if there is no ${HOME}/.gnupg):

${HOME}/.gnupg/pubring.gpg: No such file or directory
Can't read pubring /root/.gnupg/pubring.gpg
Can't read pub keyring
can't initialise

This should show useful output instead.

ronaldtse commented 6 years ago

@ni4 @dewyatt Is this still valid? Thanks!

dewyatt commented 6 years ago

I would say yes, generally. For example, with an empty ~/.rnp, you can't even do a symmetric encrypt: echo test | rnp -c --password mypass

ni4 commented 6 years ago

Yeah, now it has a bit different text and behavior but still needs fixing.