tls-ca-fetch
Pre-built binaries or three ways to compile โ no runtime dependencies either way.
Download a static binary directly from the releases/ directory in the repo. No Go, no Docker required.
No local Go install required. build.sh cross-compiles all platforms in a golang:1.22-alpine container.
Clone and go build or make build for a quick local binary. make cross for all platforms.
| Requirement | Details | Status |
|---|---|---|
| Go 1.22+ | Only needed for from-source builds. Docker build uses golang:1.22-alpine internally. |
โ optional |
| Docker | Only needed for the build.sh method. Any recent Docker Engine works. |
โ optional |
| make | Optional โ Makefile wraps the go build commands. You can invoke go build directly. |
โ optional |
Static binaries for every platform are committed to releases/v1.0.0/ in the repo.
# Download $ curl -Lo tls-ca-fetch \ https://github.com/binRick/tls-ca-fetch/raw/main/releases/v1.0.0/tls-ca-fetch-linux-amd64 # Make executable and install $ chmod +x tls-ca-fetch $ sudo mv tls-ca-fetch /usr/local/bin/ # Verify $ tls-ca-fetch -version tls-ca-fetch v1.0.0
build.shNo local Go needed. The script pulls golang:1.22-alpine, cross-compiles all targets, and drops binaries into releases/.
# Clone $ git clone https://github.com/binRick/tls-ca-fetch.git $ cd tls-ca-fetch # Build all platforms (specify version) $ VERSION=v1.0.0 ./build.sh Building tls-ca-fetch v1.0.0 ... โ linux/amd64 โ linux/arm64 โ darwin/amd64 โ darwin/arm64 โ windows/amd64 Done. Binaries in releases/v1.0.0/ # Install $ sudo cp releases/v1.0.0/tls-ca-fetch-linux-amd64 /usr/local/bin/tls-ca-fetch
Requires Go 1.22+. make build produces a local binary. make cross cross-compiles all platforms.
$ git clone https://github.com/binRick/tls-ca-fetch.git $ cd tls-ca-fetch # Local binary $ make build go build -o tls-ca-fetch . # Cross-compile all platforms $ make cross โ releases/v1.0.0/tls-ca-fetch-linux-amd64 โ releases/v1.0.0/tls-ca-fetch-linux-arm64 โ releases/v1.0.0/tls-ca-fetch-darwin-amd64 โ releases/v1.0.0/tls-ca-fetch-darwin-arm64 โ releases/v1.0.0/tls-ca-fetch-windows-amd64.exe
CGO disabled and debug symbols stripped โ copy the binary to any machine of the same arch and it just works.
$ CGO_ENABLED=0 go build \ -trimpath -ldflags="-s -w -extldflags=-static" \ -o tls-ca-fetch . # Confirm: no dynamic libraries $ file tls-ca-fetch tls-ca-fetch: ELF 64-bit LSB executable, x86-64, statically linked, stripped # Copy anywhere $ scp tls-ca-fetch user@server:/usr/local/bin/