public static CertBotConfiguration GetConfiguration(this IConfiguration configuration)
        {
            var config = new CertBotConfiguration();

            configuration.Bind(config);
            return(config);
        }
Beispiel #2
0
 public CertificateService(ILogger <CertificateService> logger, IAcmeService acme,
                           IDnsProviderService dnsProviderService, CertBotConfiguration configuration)
 {
     _logger             = logger;
     _acme               = acme;
     _dnsProviderService = dnsProviderService;
     _configuration      = configuration;
 }
Beispiel #3
0
        private static void RegisterDnsProvider(CertBotConfiguration configuration)
        {
            switch (configuration.Provider)
            {
            case DnsProvider.Freenom:
                StartupModule.DynamicDependsModules.Add(typeof(FreenomDnsProviderModule));
                break;

            case DnsProvider.CloudFlare:
            default:
                StartupModule.DynamicDependsModules.Add(typeof(CloudFlareDnsProviderModule));
                break;
            }
        }