Moved key generation to installer