Change ssl connection to complete the connection properly