作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试从客户端应用程序连接到 MongoDB 服务器。我启用了 TLS,并且我使用的是自签名证书。以下是详细信息:
OS: Windows Server 2016
MongoDB Version: 4.2.5
mongod.cfg (config file):
net:
tls:
mode: requireTLS
certificateSelector: subject=server1.com
allowInvalidCertificates: true
disabledProtocols: none
systemLog:
destination: file
path: F:\MongoDB\log\mongod.log
logAppend: true
storage:
dbPath: F:\MongoDB\data
net:
bindIp: localhost,server1.com
port: 27017
mongodb://user:*******************@server1.com:27017/CustomerDB?authSource=CustomerDB&tls=true&tlsAllowInvalidCertificates=true
Error receiving request from client: SSLHandshakeFailed: The server is configured to only allow SSL connections
最佳答案
您的客户端未使用 TLS。
请注意 tls=true
是最近添加的选项。确保您使用的是当前版本的 MongoDB 驱动程序。
关于MongoDB 4.2.5 接收来自客户端的请求时出错 : SSLHandshakeFailed: The server is configured to only allow SSL connections,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61241048/
我有一个使用 Flash Professional CC 发布并为 Flash Player13 发布的 AS3 Flash。 问题是:当我创建到我的 RTMP 服务器 (RED5 v1.1) 的 N
我正在尝试从客户端应用程序连接到 MongoDB 服务器。我启用了 TLS,并且我使用的是自签名证书。以下是详细信息: OS: Windows Server 2016 MongoDB Version:
我在 Ubuntu 16.04.5 LTS 服务器上设置了一个具有 SSL 安全性的 mongoDB 数据库,我已经使用它几个月了。为了在 mongo 上设置 SSL,我遵循了 Rajan Mahar
我是一名优秀的程序员,十分优秀!