added support for self signed certificate. (NOTE: you will need to add     <add key="IgnoreSslErrors" value="true" /> on appSettings)