client: fixes for pgp key import/removal