[WIP] SSL

Implement full and partial SSL for SMF