Add debugging information to monkeysphere-host publish-key
The monkeysphere-host publish-key sub-command doesn't have any useful log information:
0 george:/etc/monkeysphere# MONKEYSPHERE_LOG_LEVEL=DEBUG monkeysphere-host publish-key Really publish key 'CCAB23AD837EA3D2948CFA877353A74E3B757F8C' to hkps://zimmermann.mayfirst.org? (Y/n) y gpg: sending key 3B757F8C to hkps server zimmermann.mayfirst.org gpgkeys: HTTP post error 60: server certificate verification failed. CAfile: none gpg: keyserver internal error gpg: keyserver send failed: keyserver error 2 george:/etc/monkeysphere#
This output is the same as if run at MONKEYSPHERE_LOG_LEVEL=INFO or with no log setting at all.
Some things I can think of that would be useful to know about at a debug level:
- What configuration file it is parsing (/etc/monkeysphere/monkeysphere-host.conf)
- That it obtains the variable KEYSERVER and sets it to hkps://zimmermann.mayfirst.org
- That it prompts for a response (good to know for non-interactive scripting debugging)
- Where/how it determines what key to publish
- What gnupg.conf it might be parsing to get further options
- What gpg command line and options it uses to do the publishing
(from redmine: created on 2010-05-06, closed on 2010-10-08, relates #2288 (closed))