Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WillianBR opened this issue Dec 21, 2020 · 0 comments
Open

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

WillianBR opened this issue Dec 21, 2020 · 0 comments

Comments

@WillianBR
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant