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

crypto/x509: CGO_ENABLED=0 x509: certificate signed by unknown authority #38365

Closed
kotyara85 opened this issue Apr 10, 2020 · 6 comments
Closed

crypto/x509: CGO_ENABLED=0 x509: certificate signed by unknown authority #38365

kotyara85 opened this issue Apr 10, 2020 · 6 comments

Comments

@kotyara85
Copy link

@kotyara85 kotyara85 commented Apr 10, 2020

What version of Go are you using (go version)?

go version go1.12.14 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

darwin/amd64

What did you do?

We're using akamai zta, which means the path is our cli tool -> sso -> website

What did you expect to see?

Downloaded page

What did you see instead?

x509: certificate signed by unknown authority

This only works if CGO_ENABLED=1, but we need to build darwin & windows images inside linux docker image

@andybons
Copy link
Member

@andybons andybons commented Apr 10, 2020

Can you provide a small program that demonstrates this behavior?

@andybons andybons changed the title CGO_ENABLED=0 x509: certificate signed by unknown authority crypto/x509: CGO_ENABLED=0 x509: certificate signed by unknown authority Apr 10, 2020
@andybons andybons added this to the Unplanned milestone Apr 10, 2020
@andybons
Copy link
Member

@andybons andybons commented Apr 10, 2020

@gopherbot
Copy link

@gopherbot gopherbot commented Apr 11, 2020

Change https://golang.org/cl/227037 mentions this issue: crypto/x509: use Security.framework without cgo for roots on macOS

@kotyara85
Copy link
Author

@kotyara85 kotyara85 commented May 29, 2020

This fix didn't solve the problem on 1.14.3

@FiloSottile
Copy link
Member

@FiloSottile FiloSottile commented May 30, 2020

This fix will be released in Go 1.15, not a minor release.

@kotyara85
Copy link
Author

@kotyara85 kotyara85 commented Jun 2, 2020

Gotcha, thanks

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.