prepare for ssl support