Fixing bug related with making ssl connections

#239 Fixing the bug with ssl options. SSL options weren't getting set properly