Fix issue 15

support SSL with self-signed certificate.