如何解决从 Docker C# 应用程序连接到 AWS DocumentDB 的证书错误
我的 .net Core 应用程序在我的主机上运行并正常连接。
一旦从 docker 容器构建并运行,它就会失败并显示错误 System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
使用的 mongo 连接字符串 mongodb://user@xxxx.amazonaws.com/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false&connectTimeoutMS=3000
当使用 RUN wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem -P /app
我还尝试使用容器内的 dotnet-certificate-tool
安装证书。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。