linux - 远程证书仅对 Linux 上的 .net core 应用程序无效
问题描述
我有一个 dotnet 核心应用程序,它通过控制器 => 操作向 S3 存储桶发出外部请求。这样:
using (var client = new AmazonS3Client(credentials, Amazon.RegionEndpoint.EUSouth1))
{
return await client.GetObjectAsync(request);
}
当我向执行此代码的端点发出请求时,我在 Mac 和 Windows 上都获得了成功的结果。当我为应用程序创建一个 Linux 容器(目标是部署这个容器)时,问题就出现了,在这种情况下,我得到以下异常:
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
你能帮助我吗?
解决方案
推荐阅读
- sql-server - SQL Modify_date 以毫秒为单位的分辨率
- azure - 从 Azure 下载 Cosmos DB 的简单方法
- android - iphone 上三星邮件和 Gmail 应用程序上的媒体查询问题
- javascript - 角日历插件
- angular - Angular:如何在子组件之间切换选择
- javascript - 如何使音频按我想要的方式工作?
- laravel - 如何使用 laravel、VUE 和 NUXT.js 通过 API 下载 CSV 文件?
- azure-devops - Azure Artifacts 仅下载在构建服务器上部署所需的特定文件
- typescript - 类型“{}”.ts(2339) 上不存在属性“我”
- r - 当我输出ggplot图时,函数的结果不同,为什么?