check and insert ssl connection with the server
check and insert ssl connection with the server