Fixed ssl connection issue