Add ssl options in rest connection

Hi all,

I added a ssl options for rest connection then everyone can set up his environment (development, production,staging, etc.)

I hope you will find it useful.

Thanks.