MongoDB Atlas SSL握手失败:

发布于 2025-01-25 05:57:16 字数 412 浏览 4 评论 0原文

我可以通过Mongosh Shell连接到MongoDB Atlas DB,但是在尝试通过Pymongo驱动程序访问时,我会遇到错误。这是连接字符串:

mongodb+srv://<user:<password>@cluster0.j1tlk.mongodb.net/myFirstDatabase?retryWrites=true&w=majority

这是我遇到的错误:

SSL handshake failed: cluster0-shard-00-00.j1tlk.mongodb.net:27017: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed'

I can connect to mongodb atlas db through the mongosh shell, however I get an error when trying to access through the pymongo driver. This is the connection string:

mongodb+srv://<user:<password>@cluster0.j1tlk.mongodb.net/myFirstDatabase?retryWrites=true&w=majority

And this the error I am getting:

SSL handshake failed: cluster0-shard-00-00.j1tlk.mongodb.net:27017: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文