Troubleshooting gpg

To quickly test gpg signing on a new machine, try:

echo "test" | gpg --clearsign

which should result in an output similar to this:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

test
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEt0V/ZL1b1a0ErDoZd9qIclINoTAFAl7q/PMACgkQd9qIclIN
oTBaOxAA0CQlMT4c8YjaU/wcgK/GuT68KRMk5hSEAnaISEYNj5DJXHGKf6SteL2X
oPY8uahNQuE4XPGaL3iUKAx+Vc0JdDdIjxAHyKv8hyvRUAzp4LYZg4ArJHK2Wgzf
bR4pOwlPlKin6Wk+oG70v3wxNf8JKMAESL0eJLKkOidc41pGjwMfOiOdH1DS/KCE
e6GwJyyuIDhlddX2qJEH1Q3L+tITsVFR3mPMGEQBr74RqnMMjO+9cB82yVrSTnYW
+T6Cy0ZAP0oifool3S24ImBwBdUjEUxlPoqeLXZXlA2v4MCYD2zcDn8edj7w9nna
Wpg29SK2KFZgvvFS4/9fUQyltiWewhFZ4NiQHPlX8QhDhBNlt5aRWk/YcG3VTCBy
7KAn1zVZN1Yx5YDd0Kg7C+KAA12gIbcbAyLmee2Mes3GrYZi/RX2hHlK8tAlQM2w
FEeCGIlYluzdF/sd64Ga8TbGQdry+qe8vPJNfEQSysCf42geT3B7Bmat+oXET2QE
w3kGebO1UFMLZLq+N1MJcewtt7QUShjjZp71LkWiu2fX3gv3xey9CuVps6b2cg8A
Vp1vPvjwTccYSvPM9t3l5wrz4D3dab6IRH6WzSfprW9TDop+wFnf70CQdPyKphIE
uTyyudkOu5ByvXYWv1tyKIZsjD2H0+tPvXptkt9oeTbLbWs4brg=
=zJkM
-----END PGP SIGNATURE-----