-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@rahulrraj Kindly advise on how you determined to include certificate? For the NuGet error, StackOverflow post https://stackoverflow.com/questions/41185443/nuget-connection-attempt-failed-unable-to-load-the-service-index-for-source might provide some clue. Is the error related to NuGet resolved or are we talking about some different error? |
Beta Was this translation helpful? Give feedback.
-
We use zscalar which acts as MAN-IN-THE-MIDDLE doing the ssl inspecting. Usually, I include the following in my docker file to resolve
I am not sure how to include the certificate in the container when I run dotnet lambda package command to build the net7.0 application For example, for a simple asp dotnet app, If I in include the following in my docker file, my build is successful. Refer to the image below
|
Beta Was this translation helpful? Give feedback.
-
I think for your situation the easiest fix would be for you to create a custom image using our image |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I think for your situation the easiest fix would be for you to create a custom image using our image
public.ecr.aws/sam/build-dotnet7:latest-x86_64
as the base and then include the cert in your custom image. Then when you run thedotnet lambda deploy-function
command use the--container-image-for-build
switch to specify your image.