From b5747f52e7fb5e9da3cc6adc2b0cf0320d49a629 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Tue, 9 Jul 2024 01:57:03 -0700 Subject: [PATCH] use embedded certs --- go.mod | 1 + go.sum | 2 ++ wrp.go | 2 ++ 3 files changed, 5 insertions(+) diff --git a/go.mod b/go.mod index 253dfa6..238f62b 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.21.5 require ( github.com/JohannesKaufmann/html-to-markdown v1.6.0 github.com/MaxHalford/halfgone v0.0.0-20171017091812-482157b86ccb + github.com/breml/rootcerts v0.2.17 github.com/chromedp/cdproto v0.0.0-20240519224452-66462be74baa github.com/chromedp/chromedp v0.9.5 github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 diff --git a/go.sum b/go.sum index 53b4a99..78c61d5 100644 --- a/go.sum +++ b/go.sum @@ -6,6 +6,8 @@ github.com/PuerkitoBio/goquery v1.9.2 h1:4/wZksC3KgkQw7SQgkKotmKljk0M6V8TUvA8Wb4 github.com/PuerkitoBio/goquery v1.9.2/go.mod h1:GHPCaP0ODyyxqcNoFGYlAprUFH81NuRPd0GX3Zu2Mvk= github.com/andybalholm/cascadia v1.3.2 h1:3Xi6Dw5lHF15JtdcmAHD3i1+T8plmv7BQ/nsViSLyss= github.com/andybalholm/cascadia v1.3.2/go.mod h1:7gtRlve5FxPPgIgX36uWBX58OdBsSS6lUvCFb+h7KvU= +github.com/breml/rootcerts v0.2.17 h1:0/M2BE2Apw0qEJCXDOkaiu7d5Sx5ObNfe1BkImJ4u1I= +github.com/breml/rootcerts v0.2.17/go.mod h1:S/PKh+4d1HUn4HQovEB8hPJZO6pUZYrIhmXBhsegfXw= github.com/chromedp/cdproto v0.0.0-20240202021202-6d0b6a386732/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs= github.com/chromedp/cdproto v0.0.0-20240519224452-66462be74baa h1:T3Ho4BWIkoEoMPCj90W2HIPF/k56qk4JWzTs6JUBxVw= github.com/chromedp/cdproto v0.0.0-20240519224452-66462be74baa/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs= diff --git a/wrp.go b/wrp.go index 50d44f1..6cbccc1 100644 --- a/wrp.go +++ b/wrp.go @@ -36,6 +36,7 @@ import ( "time" "github.com/MaxHalford/halfgone" + _ "github.com/breml/rootcerts" "github.com/chromedp/cdproto/css" "github.com/chromedp/cdproto/emulation" "github.com/chromedp/cdproto/input" @@ -591,6 +592,7 @@ func main() { log.SetFlags(log.LstdFlags | log.Lshortfile) flag.Parse() log.Printf("Web Rendering Proxy Version %s (%v)\n", version, runtime.GOARCH) + log.Printf("Using embedded ca-certs from github.com/breml/rootcerts") log.Printf("Args: %q", os.Args) if len(os.Getenv("PORT")) > 0 { *addr = ":" + os.Getenv(("PORT"))