Security: generate keys for the server.