platform independent fixing for ssl problem