I’m encountering an issue with the Go driver for MongoDB. When trying to fetch the module go.mongodb.org/mongo-driver, the following error occurs:
github.com/jmespath/go-jmespath/internal/testify/assert: go.mongodb.org/mongo-driver@v1.15.1: unrecognized import path "go.mongodb.org/mongo-driver": https fetch: Get "https://go.mongodb.org/mongo-driver?go-get=1": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-01-03T02:38:19Z is after 2025-01-02T23:59:59Z
It seems the TLS certificate for go.mongodb.org expired on 2025-01-02T23:59:59Z, which is causing this issue.
Steps to Reproduce:
- Attempt to fetch the module via
go get go.mongodb.org/mongo-driver.
- Observe the TLS certificate verification failure.
Current Environment:
- Go Version: [Add your Go version here, e.g., 1.20.5]
- MongoDB Go Driver Version:
v1.15.1
- Time of Error:
2025-01-03T02:38:19Z
Request:
Could you please renew the certificate for go.mongodb.org? This is currently blocking module installation and updates.
In the meantime, I’ve applied temporary workarounds like GOINSECURE to proceed, but a permanent fix would be appreciated.
Thanks in advance for your assistance!
Matt_Dale
(Matt Dale)
2
Hey @Mohammad_Bhatti, thanks for the report!
I’m unable to reproduce that error, and the TLS cert that I get is valid until Jan 2, 2026. It’s possible the cert has been rotated since you got that error. Can you try again and see if it works now?
Hi @Matt_Dale ,
Thanks for your response.
The issue initially occurred at 3 AM GMT on 3rd January 2025 while I was trying to deploy something. However, I retried at midday, and it worked without any problems. It seems the certificate might have been rotated since then, as you mentioned.
Appreciate your help!