Create hostkey and hostcert at the beginning of the script