Example of creating a server with a key pair