server/keymgmt.c: Detect if a private keys records a wrong public key.