update keys for registration