[client] --key-gen bug fix to print keys to stdout