-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
proxy.golang.org: certificate may have been revoked #46428
Comments
What would be the right certificate to use to download modules from proxy.golang.org |
Can you please provide more details? Namely, the platform you're running on, and the full text of the error you're seeing and the precise steps you took to reproduce it? |
It looks like the certificate was reissued a few weeks ago, so it's possible the docker container in question is missing a root certificate that it didn't need before that reissue. But the certificate has certainly not been revoked. |
This could also be a corporate firewall/mitm proxy like in #45569 |
Apparently, I'm trying to build a docker image from my mac for my golang application and while running docker I get the error "x509 certificate signed by unknown authority" while it runs the part "RUN go mod download". It used to work a month back but the same docker file now fails with this error. Looks like something is out of sync with the ssl cert used for proxy.golang.org. Omitted some details. Here is my docker file
|
Shouldn't the below take care of the cert? Why do I still get the cert unknown error. |
please include the full output of your docker build |
Here is my docker output.
|
Could it be a problem with the certificate used by proxy.golang.org? When I try to set my GOPROXY=direct everything works like a charm but I'm trying to avoid the 'direct' usage. As I mentioned previously, just a month ago it was all working without any issues. I know recently something changed with the certificates and everything stopped working. |
Tried running this command. Could that be the issue? output
CONNECTED(00000006)
depth=2 C = US, ST = California, L = San Francisco, O = Cisco, CN = Cisco Umbrella Primary SubCA
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=1 O = Cisco, CN = Cisco Umbrella Secondary SubCA nyc-SG
verify return:1
depth=0 C = US, ST = California, L = San Francisco, O = "Cisco Systems, Inc.", CN = proxy.golang.org
verify return:1
---
Certificate chain
0 s:C = US, ST = California, L = San Francisco, O = "Cisco Systems, Inc.", CN = proxy.golang.org
i:O = Cisco, CN = Cisco Umbrella Secondary SubCA nyc-SG
1 s:O = Cisco, CN = Cisco Umbrella Secondary SubCA nyc-SG
i:C = US, ST = California, L = San Francisco, O = Cisco, CN = Cisco Umbrella Primary SubCA
2 s:C = US, ST = California, L = San Franc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
NBbCg/KlcP5g7mPazKjxC2platV0Ojko68WpwBW57QmHO8cRNomPJlEB7zLMFLAQ
IgTeRIeQYPH/oEaR3VQNQaT3IweCWLBlPyYhjDEeR95G7AU4HS7zsmu/spruUHT4
/GbTNAhpOKLKhVxpLmUQ9ZcWm954GX6Z16256o53gsz4xiP/
-----END CERTIFICATE-----
subject=C = US, ST = California, L = San Francisco, O = "Cisco Systems, Inc.", CN = proxy.golang.org
issuer=O = Cisco, CN = Cisco Umbrella Secondary SubCA nyc-SG No client certificate CA names sentSSL handshake has read 3483 bytes and written 636 bytes
|
It looks like your connection is being interceded. Compare the output with the real SSL certificate |
https://docs.umbrella.com/deployment-umbrella/docs/rebrand-cisco-certificate-import-information The untrusted certificate is because of your proxy settings Closing as there's no problem with proxy.golang.org |
Thanks for confirming there is no issue with proxy.golang.org. But can someone tell me what course of action I need to take to solve my problem? If its the certificate then can you point me to the right CA root cert? |
Please note that one of the chains is not trusted. |
Solved this. Below is what I had to use. I downloaded the cisco root umbrella CA and converted the file from .cer to crt using openssl. RUN cp cisco.crt /usr/local/share/ca-certificates/cisco.crtRUN update-ca-certificates |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build a docker image for a go application
RUN go mod download
Docker build failed with x509 unknown certificate issue while executing go mod download
What did you expect to see?
Should download module
What did you see instead?
x509. Certificate error
The text was updated successfully, but these errors were encountered: