adding the option to accept self signed certificate