monkeysphere-host set-expire error message confusion
This is a pretty minor usability thing, but when I went to go extend the george ssh key, I read monkeysphere-host help output wrong:
set-expire (e) EXPIRE [KEYID] set key expiration
I thought the (e) was a synonym for EXPIRE, so I did this:
0 george:~# monkeysphere-host set-expire 3B757F8C
And then the error message told me:
Your host keyring contains multiple keys. Please specify one to act on (see 'monkeysphere-host show-keys').
Hmmm, I did specify a key. I didn't realize that EXPIRE was the expiration information, so I was wrong there, but it thinks I am providing an expiration date, which I am not doing. The error should be a invalid usage, print usage error.
Once I did realize that I did this:
0 george:~# monkeysphere-host set-expire 2010-03-20 3B757F8C Are you sure you want to change the expiration on key 'CCAB23AD837EA3D2948CFA877353A74E3B757F8C' by '2010-03-20'? (Y/n) y ms: setting key expiration to 2010-03-20. gpg: please do a --check-trustdb gpg: WARNING: no user ID has been marked as primary. This command may cause a different user ID to become the assumed primary. gpg: Hangup caught ... exiting /usr/sbin/monkeysphere-host: line 76: 30945 Hangup GNUPGHOME="$GNUPGHOME_HOST" gpg --no-auto-check-trustdb --no-greeting --quiet --no-tty "$@"
Thats a sad state of affairs. Ok, so it seems like I didn't provide a reasonable expiration format, and it needs to be "6m" instead. Again, my mistake, but the mistake revealed some pretty interesting error, and not a particularly good hint at wtf is wrong with me.
(from redmine: created on 2010-09-20)