Page MenuHome GnuPG

error searching keyserver: Operation not permitted
Closed, InvalidPublic

Description

i hope i stand corrected

$ gpg -vvv --keyserver jirk5u4osbsr34t5.onion --search-keys sexypgp
gpg: using character set 'utf-8'
gpg:


gpg: keyserver search failed: Operation not permitted

$ gpgconf --check-programs
gpg:OpenPGP:/usr/local/bin/gpg:1:1:
gpg-agent:Private Keys:/usr/local/bin/gpg-agent:1:1:
scdaemon:Smartcards:/usr/local/libexec/scdaemon:1:1:
gpgsm:S/MIME:/usr/local/bin/gpgsm:1:1:
dirmngr:Network:/usr/local/bin/dirmngr:1:1:
pinentry:Passphrase Entry:/usr/local/bin/pinentry:1:1:

$ ls -la /usr/local/bin/
drwxrwsr-x 2 root staff 4096 Oct 30 17:39 .
drwxrwsr-x 11 root staff 4096 Oct 28 02:12 ..
lrwxrwxrwx 1 root staff 3 Oct 26 00:02 captoinfo -> tic
-rwxr-xr-x 1 root staff 90200 Oct 26 00:02 clear
-rwxr-xr-x 1 root staff 2407640 Oct 30 17:39 dirmngr
-rwxr-xr-x 1 root staff 481760 Oct 30 17:39 dirmngr-client
-rwxr-xr-x 1 root staff 34744 Oct 25 23:45 dumpsexp
-rwxr-xr-x 1 root staff 4216344 Oct 30 17:39 gpg
-rwxr-xr-x 1 root staff 1667432 Oct 30 17:39 gpg-agent
-rwxr-xr-x 1 root staff 591960 Oct 30 17:39 gpgconf
-rwxr-xr-x 1 root staff 674176 Oct 30 17:39 gpg-connect-agent
-rwxr-xr-x 1 root staff 81640 Oct 25 23:11 gpg-error
-rwxr-xr-x 1 root staff 2201 Oct 25 23:11 gpg-error-config
-rwxr-xr-x 1 root staff 92800 Oct 30 17:39 gpgparsemail
-rwxr-xr-x 1 root staff 837064 Oct 30 17:39 gpgscm
-rwxr-xr-x 1 root staff 2163056 Oct 30 17:39 gpgsm
-rwxr-xr-x 1 root staff 671016 Oct 30 17:39 gpgtar
-rwxr-xr-x 1 root staff 2053392 Oct 30 17:39 gpgv
-rwxr-xr-x 1 root staff 43720 Oct 25 23:45 hmac256
-rwxr-xr-x 1 root staff 234984 Oct 26 00:02 infocmp
lrwxrwxrwx 1 root staff 3 Oct 26 00:02 infotocap -> tic
-rwxr-xr-x 1 root staff 799952 Oct 30 17:39 kbxutil
-rwxr-xr-x 1 root staff 2647 Oct 25 23:47 ksba-config
-rwxr-xr-x 1 root staff 2522 Oct 25 23:48 libassuan-config
-rwxr-xr-x 1 root staff 4003 Oct 25 23:45 libgcrypt-config
-rwxr-xr-x 1 root staff 51256 Oct 25 23:45 mpicalc
-rwxr-xr-x 1 root staff 6016 Oct 26 00:02 ncurses6-config
-rwxr-xr-x 1 root staff 3108 Oct 25 22:58 npth-config
lrwxrwxrwx 1 root staff 14 Oct 30 17:32 pinentry -> pinentry-gtk-2
-rwxr-xr-x 1 root staff 466328 Oct 30 17:32 pinentry-curses
-rwxr-xr-x 1 root staff 556120 Oct 30 17:32 pinentry-gtk-2
lrwxrwxrwx 1 root staff 4 Oct 26 00:02 reset -> tset
-rwxr-xr-x 1 root staff 107384 Oct 26 00:02 tabs
-rwxr-xr-x 1 root staff 265896 Oct 26 00:02 tic
-rwxr-xr-x 1 root staff 161352 Oct 26 00:02 toe
-rwxr-xr-x 1 root staff 107872 Oct 26 00:02 tput
-rwxr-xr-x 1 root staff 96184 Oct 26 00:02 tset
-rwxr-xr-x 1 root staff 41248 Oct 30 17:39 watchgnupg

dirmngr.conf:

use-tor
keyserver hkp://jirk5u4osbsr34t5.onion

any advice to proceed ?

Details

Version
2.2.1

Event Timeline

Put

log-file /foo/bar/dirmngr.log
debug network,dns,ipc
verbose

into ~/.gnupg/dirmngr.conf and restart dirmngr "gpgconf --kill all". Then run your gpg command avain (a single -v is sufficient). Does the log reveal something?

I cannot explain why it works now

Thanks for those conf options, sorry for false alarm, some humour for
forgiveness

I will just accept it works for now until it stops

$ gpg --keyserver hkp://jirk5u4osbsr34t5.onion --search-keys trump
gpg: data source: http://jirk5u4osbsr34t5.onion:11371
(1) Donald Trump <truno@hotmajk.com>

	  3072 bit RSA key 0x1EBE865098F92029, created: 2017-10-23

(2) xx_e$3(\/)_respeck_mah_privacy_xx (respeck.mah.privacy.us.laughable.go

	  2048 bit RSA key 0x4F4E44870F0B82C5, created: 2017-09-28, expires:

2017-09-30 (expired)

2017-11-04 23:59:53 dirmngr[6050.7] DBG: chan_7 -> D uid:Donald Trump (I
have a feeling Donald Trump is going to win the 2016 election and become
our president.) <president@whitehouse.gov>:704610041::%0A

!!!

werner (Werner Koch):

werner added a comment.

Put

log-file /foo/bar/dirmngr.log
debug network,dns,ipc
verbose

into ~/.gnupg/dirmngr.conf and restart dirmngr "gpgconf --kill all".
Then run your gpg command avain (a single -v is sufficient). Does the
log reveal something?

Oh yes.

*TASK DETAIL*
https://dev.gnupg.org/T3481

*EMAIL PREFERENCES*
https://dev.gnupg.org/settings/panel/emailpreferences/

*To: *werner

*Cc: *werner, fulanoperez, gp_ast

This is an automated email from the GnuPG development hub. If you have
registered in the past at https://bugs.gnupg.org/ your account was
migrated automatically. You can visit https://dev.gnupg.org/ to set a
new password and update your email preferences.