Pick the method that fits your platform
$ brew install binRick/tap/tls-ca-fetch
$ brew tap binRick/tap $ brew install tls-ca-fetch
$ brew upgrade tls-ca-fetch
chmod +x, and run. Available for Linux, macOS, and Windows.
$ curl -fsSL https://github.com/binRick/tls-ca-fetch/raw/main/releases/v1.0.0/tls-ca-fetch-linux-amd64 -o tls-ca-fetch $ chmod +x tls-ca-fetch && sudo mv tls-ca-fetch /usr/local/bin/
$ curl -fsSL https://github.com/binRick/tls-ca-fetch/raw/main/releases/v1.0.0/tls-ca-fetch-linux-arm64 -o tls-ca-fetch $ chmod +x tls-ca-fetch && sudo mv tls-ca-fetch /usr/local/bin/
$ curl -fsSL https://github.com/binRick/tls-ca-fetch/raw/main/releases/v1.0.0/tls-ca-fetch-darwin-arm64 -o tls-ca-fetch $ chmod +x tls-ca-fetch && sudo mv tls-ca-fetch /usr/local/bin/
$ curl -fsSL https://github.com/binRick/tls-ca-fetch/raw/main/releases/v1.0.0/tls-ca-fetch-darwin-amd64 -o tls-ca-fetch $ chmod +x tls-ca-fetch && sudo mv tls-ca-fetch /usr/local/bin/
> Invoke-WebRequest -Uri https://github.com/binRick/tls-ca-fetch/raw/main/releases/v1.0.0/tls-ca-fetch-windows-amd64.exe -OutFile tls-ca-fetch.exe$ tls-ca-fetch -version tls-ca-fetch v1.0.0 # quick smoke test $ tls-ca-fetch github.com โ Saved 1 CA certificate(s) โ github.com-ca.pem
go version.
Produces a native binary for your current platform.
$ git clone https://github.com/binRick/tls-ca-fetch && cd tls-ca-fetch $ make build $ sudo mv tls-ca-fetch /usr/local/bin/
$ CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o tls-ca-fetch . $ sudo mv tls-ca-fetch /usr/local/bin/
build.sh pulls golang:1.22-alpine
and cross-compiles all platforms into releases/.
$ git clone https://github.com/binRick/tls-ca-fetch && cd tls-ca-fetch $ VERSION=v1.0.0 ./build.sh Done. Binaries in releases/v1.0.0/ $ sudo cp releases/v1.0.0/tls-ca-fetch-linux-amd64 /usr/local/bin/tls-ca-fetch
See Building for full details on all build methods.