Fix

"x509: certificate signed by unknown authority"

Web
Fix x509 certificate errors in Go by setting GODEBUG=x509ignoreCN=0 or updating your CA bundle.

Set the GODEBUG environment variable to x509ignoreCN=0 or tls13=0 to bypass strict certificate validation, or ensure your system's CA bundle is up to date. For Go 1.21+, you can also use //go:debug x509ignoreCN=0 in your source code to disable Common Name checking if the certificate is valid but the CN field is missing.

export GODEBUG=x509ignoreCN=0
go build ./...