-
We are currently in the process of upgrading our AWS Lambda from .NET Core 6 to 8. We have built an AWS Lambda layer containing all the necessary certifications. However, after migrating the AWS Lambda, we encountered a certification error when calling the service. Interestingly, the same certificate works perfectly fine in .NET Core 6. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The major difference in .NET 8 that could be causing your trouble is .NET 8 uses Amazon Linux 2023 which has OpenSSL 3 versus .NET 6 used Amazon Linux 2 and OpenSSL 1. How are you telling the system to use the certs from the layer? |
Beta Was this translation helpful? Give feedback.
The .NET feature self contained only works when publishing executables not class libraries. The
Empty Function
blueprint creates a project as a class library. The Empty Top-Level Function blueprint is an executable where you can see it has the Lambda bootstrap code.When you deploy a Lambda function as an executable like the
Empty Top-Level Function
blueprint does the handler is set to just the assembly name.