genkey: fix backup key generation