c7b324
diff -up ./skopeo-e079f9d61b2508b57e9510752d7e893b544c3cb8/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 ./skopeo-e079f9d61b2508b57e9510752d7e893b544c3cb8/vendor/github.com/containers/image/docker/docker_client.go
c7b324
--- ./skopeo-e079f9d61b2508b57e9510752d7e893b544c3cb8/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214	2019-09-12 15:41:52.774748876 +0200
c7b324
+++ ./skopeo-e079f9d61b2508b57e9510752d7e893b544c3cb8/vendor/github.com/containers/image/docker/docker_client.go	2019-09-12 15:41:52.775748889 +0200
c7b324
@@ -523,11 +523,7 @@ func (c *dockerClient) getBearerToken(ct
c7b324
 		authReq.SetBasicAuth(c.username, c.password)
c7b324
 	}
c7b324
 	logrus.Debugf("%s %s", authReq.Method, authReq.URL.String())
c7b324
-	tr := tlsclientconfig.NewTransport()
c7b324
-	// TODO(runcom): insecure for now to contact the external token service
c7b324
-	tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
c7b324
-	client := &http.Client{Transport: tr}
c7b324
-	res, err := client.Do(authReq)
c7b324
+	res, err := c.client.Do(authReq)
c7b324
 	if err != nil {
c7b324
 		return nil, err
c7b324
 	}