I'm using the below command
gpg --keyserver hkp://pool.sks-keyservers.net --send-keys <MY-8-DIGIT-SIGNATURE>
as per guided by this article https://getstream.io/blog/publishing-libraries-to-mavencentral-2021/
However, when I try it, it reports
gpg: sending key <MY-16-DIGIT-SIGNATURE> to hkp://pool.sks-keyservers.net
gpg: keyserver send failed: No keyserver available
gpg: keyserver send failed: No keyserver available
What's wrong with my command above?
Update findings
This works on macOS Catalina, Intel Core i7 machine.
But it doesn't work on macOS Big Sur, M1 ARM64 machine.
Not sure if it is Big Sur or M1 ARM64 machine issue?
Found a workaround to the issue.
First I kill the
dirmngr
using commandThen, I start
dirmngr
with--standard-resolver
Finally, on another terminal, I run
And this gives me the result of
Not sure why I need the
--standard-resolver
, but it works for my case.UPDATE
Found a better way to have the
standard-resolver
by default for dirmngr. This is just by addingstandard-resolver
to~/.gnupg/dirmngr.conf
file.