Adding SSL capability to adapter

This should fix issue #10. I also added the capability to ignore self-signed certs.