pgp setup and posts
Hello, And Happy New Year. I would like to post a pgp post, and I got the following error "PGP has not been set up (can't open /home/user/.gnupg/pubring.gpg)" I generate to key using "gpg --full-generate-key" command. Can anyone help me how to setup the pgp key with tin? Many thanks. -- Luc
On Sun, Jan 04, 2026 at 03:43:41PM +0200, Luc Lan wrote:
I would like to post a pgp post, and I got the following error "PGP has not been set up (can't open /home/user/.gnupg/pubring.gpg)" I generate to key using "gpg --full-generate-key" command.
you didn't say which pgp/gpg version your a trying to use and how tin was compilled/configured pgp/gpg wise, e.g. show the output of (gpg --version || pgp -h ) 2>&1 | head -n 2 tin -V 2>&1 | grep GP and if you did compile tin on your own the configure options you gave esp. any --with[out]-{pgp,gpg} flags or if you use a binary from a distribution state which one (and where to find the spec/deb/...-file).
Can anyone help me how to setup the pgp key with tin?
the pgp/gpg support is very limited (and I haven't tested the gpg stuff for ages as they tend to change the cmd.line opts and used files every few years and drop support for older keys randomly). tin can just create/handle inline (=non mime) pgp/gpg which is often unwanted on usenet. I suggest to use headersigning via tinews.pl (that may have te same issues with recent gpg versions, but might it might be easier to tweak) instead _if_ you just want to sign your articles.
On Sun, Jan 04, 2026 at 04:20:31PM +0100, Urs Janßen wrote:
On Sun, Jan 04, 2026 at 03:43:41PM +0200, Luc Lan wrote:
I would like to post a pgp post, and I got the following error "PGP has not been set up (can't open /home/user/.gnupg/pubring.gpg)" I generate to key using "gpg --full-generate-key" command.
you didn't say which pgp/gpg version your a trying to use and how tin was compilled/configured pgp/gpg wise, e.g. show the output of (gpg --version || pgp -h ) 2>&1 | head -n 2 tin -V 2>&1 | grep GP and if you did compile tin on your own the configure options you gave esp. any --with[out]-{pgp,gpg} flags or if you use a binary from a distribution state which one (and where to find the spec/deb/...-file).
Can anyone help me how to setup the pgp key with tin?
the pgp/gpg support is very limited (and I haven't tested the gpg stuff for ages as they tend to change the cmd.line opts and used files every few years and drop support for older keys randomly). tin can just create/handle inline (=non mime) pgp/gpg which is often unwanted on usenet. I suggest to use headersigning via tinews.pl (that may have te same issues with recent gpg versions, but might it might be easier to tweak) instead _if_ you just want to sign your articles.
_______________________________________________ tin-users mailing list tin-users@tin.org http://lists.tin.org/cgi-bin/mailman/listinfo/tin-users
gpg --version | head -n 2 gpg (GnuPG) 2.4.9 libgcrypt 1.11.2 tin -V 2>&1 | grep GP +HAVE_ISPELL -HAVE_METAMAIL -HAVE_PGP -HAVE_PGPK +HAVE_GPG I am using arch linux, and I installed tin via aur, but I added NNTPS support. Thank you for your answer.
On Sun, Jan 04, 2026 at 03:43:41PM +0200, Luc Lan wrote:
I would like to post a pgp post, and I got the following error "PGP has not been set up (can't open /home/user/.gnupg/pubring.gpg)"
For gpg tin looks for pubring.gpg/pubring.kbx in $HOME/.gnupg, which is the gpg default directory. For gpg this can be changed e.g. via GNUPGHOME. If so, tin doesn't find the directory anymore. Check $GNUPGHOME. In addition, you can verify that gpg finds your key via % gpg --list-secret-keys This should print your key and in the very first line one can see the location, on macOS this looks like this on my machine | /Users/dennis/.gnupg/pubring.kbx | [...] Dennis
On Sun, Jan 04, 2026 at 05:44:06PM +0100, Dennis Preiser wrote:
On Sun, Jan 04, 2026 at 03:43:41PM +0200, Luc Lan wrote:
I would like to post a pgp post, and I got the following error "PGP has not been set up (can't open /home/user/.gnupg/pubring.gpg)"
For gpg tin looks for pubring.gpg/pubring.kbx in $HOME/.gnupg, which is the gpg default directory. For gpg this can be changed e.g. via GNUPGHOME. If so, tin doesn't find the directory anymore.
Check $GNUPGHOME.
In addition, you can verify that gpg finds your key via
% gpg --list-secret-keys
gpg --list-secret-keys [keyboxd] ---------
This should print your key and in the very first line one can see the location, on macOS this looks like this on my machine
| /Users/dennis/.gnupg/pubring.kbx | [...]
Dennis
_______________________________________________ tin-users mailing list tin-users@tin.org http://lists.tin.org/cgi-bin/mailman/listinfo/tin-users
participants (3)
-
Dennis Preiser -
Luc Lan -
Urs Janßen