Support for local key generation