Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.7rc4 darwin/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/rasky/Sources/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.7rc4/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.7rc4/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lw/jdbk7p_d4gj6qpydczpbw2080000gn/T/go-build080916688=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
package main
import (
"io"
"net/http"
"os"
)
func main() {
resp, err := http.Get("https://blitznote.com/src/caddy.upload?go-get=1")
if err != nil {
panic(err)
}
io.Copy(os.Stdout, resp.Body)
}
What did you expect to see?
Some HTML output
What did you see instead?
panic: Get https://blitznote.com/src/caddy.upload?go-get=1: x509: certificate signed by unknown authority
goroutine 1 [running]:
panic(0x1fcd00, 0xc420400060)
/usr/local/Cellar/go/1.7rc4/libexec/src/runtime/panic.go:500 +0x1a1
main.main()
/private/tmp/test.go:12 +0xd0
exit status 2
Notice that visiting the same link with Safari produces no SSL error. The SSL certificate chain seems correct and the Comodo ECC CA is in OS X trust store.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version)?go version go1.7rc4 darwin/amd64What operating system and processor architecture are you using (
go env)?What did you do?
What did you expect to see?
Some HTML output
What did you see instead?
Notice that visiting the same link with Safari produces no SSL error. The SSL certificate chain seems correct and the Comodo ECC CA is in OS X trust store.