Fixed saving server keypair to xml file.