Only enable ssl when certificate file present