Correcting order of outputted keys

Without converting to string, keys are sorted in a weird CCNx order

Change-Id: I04c4b65b9bd082eb31309ea63bb91f7d5df91b7e
sign.sh: bug fix

Change-Id: I4889300badf4924445f11f5e61c0c1b4b573fb81