added ssl support to core.