fix for key deletes in generateRSAKeyPair