add ssl support

address #8 
This pull request adds ssl support.