This repository has been archived by the owner. It is now read-only.
(Archived prototype) ASP.NET Core integration for free HTTPs certificates from
Clone or download
Latest commit 8404b5c Oct 3, 2018

ASP.NET Core + Let's Encrypt

Oct 2018: Marking this project as "archived" on GitHub because I ran out of personal time to work on this and didn't get it up to a good enough quality to publish this. If you're interesting in continuing this project, please reach out to me:

The goal of this project is to make setting up HTTPS made easy.

Let's Encrypt is a free, automated, and open Certificate Authority. This project provides API for ASP.NET Core projects to use Let's Encrypt.

When configured correctly, this API will automatically contact the CA and generate an TLS/SSL certificate. It then automatically configures Kestrel to use this certificate for all HTTPs traffic.


The primary API usage is to call IWebHostBuilder.UseLetsEncrypt and set a few required options.

public class Program
    public static void Main(string[] args)

    public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            .UseLetsEncrypt(o =>
                o.HostNames = new[] { "" };
                o.AcceptTermsOfService = true;
                o.EmailAddress = "";

Testing in development

See the developer docs for details on how to test Let's Encrypt in a non-production environment.