Пример #1
0
 public AzureDnsProvider(AcmebotOptions options)
 {
     _dnsManagementClient = new DnsManagementClient(new TokenCredentials(new AppAuthenticationTokenProvider()))
     {
         SubscriptionId = options.AzureDns?.SubscriptionId ?? options.SubscriptionId
     };
 }
Пример #2
0
        public TransIpProvider(AcmebotOptions acmeOptions, TransIpOptions options, AzureEnvironment environment)
        {
            var credential = new DefaultAzureCredential(new DefaultAzureCredentialOptions
            {
                AuthorityHost = environment.ActiveDirectory
            });

            var keyUri       = new Uri(new Uri(acmeOptions.VaultBaseUrl), $"/keys/{options.PrivateKeyName}");
            var cryptoClient = new CryptographyClient(keyUri, credential);

            _transIpClient = new TransIpClient(options.CustomerName, cryptoClient);
        }
Пример #3
0
 public GratisDnsProvider(AcmebotOptions options)
 {
     _gratisDnsClient = new GratisDnsClient(options.GratisDns.Username, options.GratisDns.Password);
 }
Пример #4
0
 public DnsMadeEasyProvider(AcmebotOptions acmeOptions, DnsMadeEasyOptions options, AzureEnvironment environment)
 {
     _client = new DnsMadeEasyClient(options.ApiKey, options.SecretKey);
 }
Пример #5
0
 public CloudflareProvider(AcmebotOptions options)
 {
     _cloudflareDnsClient = new CloudflareDnsClient(options.Cloudflare.ApiKey);
 }