appears to have been originally reported on the cosign-discuss mailing list here:
http://sourceforge.net/mailarchive/message.php?msg_id=27559092
I've confirmed the same behavior with cosign 3.1.2. If you use a cert that has a space in the DN, even if you encapsulate in quotes the CGI complains about the wrong number of arguments. Using a cert with a DN that has no spaces works as expected.
I'm attaching the following (untested) patch that was provided by the author of the original post, source URL below:
https://sourceforge.net/mailarchive/attachment.php?list_name=cosign-discuss&message_id=0DBAB709A716AA4D9FFD64D57D7F20A131B957%40SE21.upce.cz&counter=1
Anonymous
conf.c.diff