I have a dotnet core app that through a controller=>action makes an external request to a S3 bucket. In this way:
using (var client = new AmazonS3Client(credentials, Amazon.RegionEndpoint.EUSouth1))
{
return await client.GetObjectAsync(request);
}
When I make a request to the end point that executes this code, I get a successful outcome on both Mac and Windows. The problem comes when I make a Linux container for the app (the goal is to deploy this container), in that case I get the following exception:
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.
Can you help me?