Skip to content

Commit e03f6be

Browse files
committed
remove hard coded lets encrypt root cert
Signed-off-by: Will Arroyo <warroyo7199008@gmail.com>
1 parent d9cc1f4 commit e03f6be

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

internal/client/transport/client.go

-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ package transport
77

88
import (
99
"bytes"
10-
"crypto/x509"
1110
"io"
1211
"net"
1312
"net/http"
@@ -41,12 +40,6 @@ func NewClient(config *proxy.TLSConfig) (*Client, error) {
4140
return nil, err
4241
}
4342

44-
if tlsConfig.RootCAs == nil {
45-
tlsConfig.RootCAs = x509.NewCertPool()
46-
}
47-
48-
tlsConfig.RootCAs.AppendCertsFromPEM([]byte(tmcRootCA))
49-
5043
transport := &http.Transport{
5144
DialContext: (&net.Dialer{
5245
Timeout: 30 * time.Second,

internal/client/transport/rootca.go

-37
This file was deleted.

0 commit comments

Comments
 (0)