update template to support ssl