Skip to content

Commit e48312b

Browse files
authored
Revert "Bundle root CAs in the CLI (stripe#444)" (stripe#491)
This reverts commit 92ec6f5.
1 parent 92ec6f5 commit e48312b

File tree

9 files changed

+0
-375
lines changed

9 files changed

+0
-375
lines changed

Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,6 @@ update-openapi-spec:
9090
wget https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.sdk.json -P ./api/openapi-spec
9191
.PHONY: update-openapi-spec
9292

93-
# Updates the DigiCert root certs
94-
update-digicert-pem:
95-
rm -f ./data/certs/*.pem
96-
wget https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem -P ./data/certs
97-
wget https://cacerts.digicert.com/DigiCertHighAssuranceEVRootCA.crt.pem -P ./data/certs
98-
.PHONY: update-digicert-pem
99-
10093
# Releases a new version
10194
release:
10295
# This does not release anything from your local machine but creates a tag

data/certs/DigiCertGlobalRootCA.crt.pem

Lines changed: 0 additions & 22 deletions
This file was deleted.

data/certs/DigiCertHighAssuranceEVRootCA.crt.pem

Lines changed: 0 additions & 23 deletions
This file was deleted.

pkg/stripe/certsfs.go

Lines changed: 0 additions & 8 deletions
This file was deleted.

pkg/stripe/certsfs_vfsdata.go

Lines changed: 0 additions & 194 deletions
This file was deleted.

pkg/stripe/client.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package stripe
33
import (
44
"context"
55
"io"
6-
"log"
76
"net"
87
"net/http"
98
"net/url"
@@ -114,18 +113,12 @@ func newHTTPClient(verbose bool, unixSocket string) *http.Client {
114113
TLSHandshakeTimeout: 10 * time.Second,
115114
}
116115
} else {
117-
tlsConfig, err := GetTLSConfig()
118-
if err != nil {
119-
log.Fatal(err)
120-
}
121-
122116
httpTransport = &http.Transport{
123117
Proxy: http.ProxyFromEnvironment,
124118
DialContext: (&net.Dialer{
125119
Timeout: 30 * time.Second,
126120
KeepAlive: 30 * time.Second,
127121
}).DialContext,
128-
TLSClientConfig: tlsConfig,
129122
TLSHandshakeTimeout: 10 * time.Second,
130123
}
131124
}

pkg/stripe/tls_config.go

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)