security: Added IdentityCertificate::certificateNameToPublicKeyName and use it in signByCertificate so that it doesn't t need to retrieve the certificate just to get the key name.
tests: sign doesn't require a certificate anymore, so don't insert the DEFAULT_CERTIFICATE.