question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

While setting up LettuceEncrypt (DigitalOcean droplet, .NET 5 RC, ASP.NET Core app via docker) I noticed the following warning:

warn: LettuceEncrypt.Internal.AcmeCertificateLoader[0]
      LettuceEncrypt can only be used with Kestrel and is not supported on Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl servers. Skipping certificate provisioning.

There’s a sanity check in https://github.com/natemcmaster/LettuceEncrypt/blob/main/src/LettuceEncrypt/Internal/AcmeCertificateLoader.cs that specifically checks the IServer instance is in fact a KestrelServer.

After checking Kestrel’s repo it appears there is now a KestrelServer and a KestrelServerImpl, both implementing IServer (KestrelServer wraps/decorates KestrelServerImpl).

Is this an easy fix or an indication of further differences in dotnet 3.1 vs 5 when it comes to Kestrel? How does .NET 5 support fit into the roadmap? Am I just dumb and misinterpreting something?

Thanks for your hard work!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
Fydarcommented, Feb 11, 2021

I’m using LettuceEncrypt 1.1.0-beta.73 on .NET 5 but I still get the same error:

LettuceEncrypt can only be used with Kestrel and is not supported on Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl servers. Skipping certificate provisioning.

Is there any kind of workaround?

The beta “preview” package does not have support for .NET 5. The full release 1.0.1 does have support for .NET 5.

You can use the version of the package from origin/main which contains the features and API of version 1.1.0-beta.73 and .NET 5 support.

We need a new preview package to be built and deployed on NuGet.

3reactions
codingyourlifecommented, Apr 25, 2021

This issue is open since October and I tried the last 3 pre-releases and they all fail for me in .NET5. Also there is this open issue: https://github.com/natemcmaster/LettuceEncrypt/issues/165 saying use pre-release because main version isn’t working.

Sorry but I give up on this package…

Read more comments on GitHub >

github_iconTop Results From Across the Web

.NET and .NET Core official support policy - Dot.net
Out of support versions ;.NET 5, November 10, 2020, 5.0.17, May 10, 2022, May 10, 2022 ;.NET Core 3.1, December 3, 2019, 3.1.32,...
Read more >
Microsoft .NET - endoflife.date
Check end-of-life, release policy and support schedule for Microsoft .NET.
Read more >
NET 5 - Supported OS versions
Alpine 3.14 and Debian 11 are now supported with the .NET 5.0.10 and .NET Core 3.1.19. The operating system support pages for .NET...
Read more >
How to Prepare for .NET 5 End-of-Support on May 8
How to Prepare for .NET 5 End-of-Support on May 8 · Open the project file (the .csproj, .vbproj or *.fsproj file). · Change...
Read more >
.NET 5 has reached End of Life
NET 6 is ending and support for .NET 5 ends on May 10, 2022 (yes, in a couple of days). .NET Supported versions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found