Split out ssl server stuff