Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 802 Bytes

File metadata and controls

13 lines (9 loc) · 802 Bytes

Lets Encrypt Sample

Lets Encrypt is a certificate authority (CA) that provides HTTPS (SSL/TLS) certificates for free. This sample shows how to add Lets Encrypt for TLS termination in YARP by integrating with LettuceEncrypt. It allows to set up TLS between the client and YARP with minimal configuration.

The sample includes the following parts:

  • It calls IServiceCollection.AddLettuceEncrypt in the ConfigureServices method.

  • Sets up the required options for LettuceEncrypt including:

    • "DomainNames" - at least one domain name is required
    • "EmailAddress" - email address must be specified to register with the certificate authority