Handle https connection, it's possible to disable to certificate validation