Infrastructure for ssl support