DEV Community

Discussion on: AWS Lambda Layer for Private Certificates

Collapse
 
aldari profile image
aldari

This sample do not provide a view how to use a certificate inside a code. After translating into serverless yml I still can not say is this article useful for me.

Collapse
 
andrewdmay profile image
Andrew May

The reason for configuring this layer is so that you do not need to use the certificate programmatically within your code - your .NET Core lambda code will automatically be able to make HTTPS calls to services using private certificates (e.g. using HttpClient or other libraries) without you needing to add any special handling for private certificates into your codebase. Think of this as being equivalent to installing the certificate on a Windows server to prevent these types of TLS errors occurring.