security: In FilePrivateKeyStorage.generateKeyPair, throw an exception if the keyName already exists.
security In MemoryPrivateKeyStorage, implement generateKeyPair.