key_name should be nil by default otherwise add_signature won't work.