Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to use IDnsChallengeProvider in .NET? #302

Open
nougat023 opened this issue Oct 18, 2024 · 1 comment
Open

[Question] How to use IDnsChallengeProvider in .NET? #302

nougat023 opened this issue Oct 18, 2024 · 1 comment
Labels

Comments

@nougat023
Copy link

Hi,

I'm trying to use AddDnsChallanegeProvider function but seems like this function is not under AddLetttuceEncrypt() anymore.

Please refer my sample code below:

builder.Services.AddLettuceEncrypt(); .AddDnsChallengeProvider<AzureDnsChallengeProvider>(options => { options.ClientId = builder.Configuration["AzureDns:ClientId"]; options.ClientSecret = builder.Configuration["AzureDns:ClientSecret"]; options.SubscriptionId = builder.Configuration["AzureDns:SubscriptionId"]; options.TenantId = builder.Configuration["AzureDns:TenantId"]; options.ResourceGroupName = builder.Configuration["AzureDns:ResourceGroupName"]; options.ZoneName = builder.Configuration["AzureDns:ZoneName"]; });

image

@NetworKKnighT
Copy link

You can use your own implementation of IDnsChallengeProvider like this:

builder.Services.AddLettuceEncrypt();
builder.Services.AddSingleton<IDnsChallengeProvider, AzureDnsChallengeProvider>();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants