fix ssl support