socket factory for both tls/https and unix sockets to be used by the docker-client