Skip to content

x509: certificate signed by unknown authority (Win10) #4

@WillianBR

Description

@WillianBR

I'm running the examples.go on Windows 10 64-bit (Git Bash), but it always fail with panic:

$ go run examples.go
panic: failed to request CA certificates: Get "https://testrfc7030.com:8443/.well-known/est/cacerts": x509: certificate signed by unknown authority

goroutine 1 [running]:
main.panicOnError(...)
        C:/Users/Willian/go/src/github.com/thales-e-security/estclient/examples/examples.go:80
main.main()
        C:/Users/Willian/go/src/github.com/thales-e-security/estclient/examples/examples.go:44 +0x813
exit status 2

It's just into the call:

cacerts, err := client.CaCerts()

How I can tell GOLang to use the local file dstcax3.pem?

If I do the call with curl, giving the dstcax3.pem, it works!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions