TL;DR
--hkp port is usually 11371
--Specify an available port, such as gpg --keyserver hkp: //keyserver.ubuntu.com:80
When I tried to install pritunl on centos7 on the corporate virtual host, I got the following error
$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys CF8E292A
gpg:Key CF8E292A from hkp to server keyserver.ubuntu.Request to com
gpgkeys: HTTP fetch error 56: Recv failure: Connection reset by peer
gpg:No valid OpenPGP data found.
The hkp port normally uses 11371. The virtual host used this time had an error because outbound 11371 was not allowed due to the security settings.
$ cat /etc/services | grep hkp
pgpkeyserver 11371/tcp hkp # PGP/GPG public keyserver
pgpkeyserver 11371/udp hkp # PGP/GPG public keyserver
If you can yum, you can use No. 80, so specify: 80.
$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CF8E292A
gpg:Key CF8E292A from hkp to server keyserver.ubuntu.Request to com
gpg:Key CF8E292A:Public key"Pritunl <[email protected]>"Have been imported
gpg:Total number of processes: 1
gpg:import: 1 (RSA: 1)
It worked
Recommended Posts