added ssl managing functions