Final Version with forwarder input and ssl