natemcmaster/LettuceEncrypt

[Question] Certificates aren't persisted on disk

dadyarri opened this issue · 3 comments

I'm running application in linux docker container with this Lettuce's config on .net 7:

builder.Services
        .AddLettuceEncrypt()
        .PersistDataToDirectory(
            new DirectoryInfo(builder.Configuration["Certificates:Path"]!),
            builder.Configuration["Certificates:Password"]
        );


    builder.WebHost.UseKestrel(k =>
    {
        var appServices = k.ApplicationServices;
        k.Listen(
            IPAddress.Any, 443,
            o => o.UseHttps(h =>
            {
                h.UseLettuceEncrypt(appServices);
            }));
    });

Account info are saved in specified location, whereas certificates doesn't:
image

Because of it i'm exceeding certificates generation limit on production server each time i'm restarting application

What should i do to avoid it and reuse already generated certificates?

What was the solution?

What was the solution?

I forgot to add a volume