GithubHelp home page GithubHelp logo

froonix / acme-dns-inwx Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 81 KB

🌐 Use INWX DNS-API for ACME's dns-01 challenge

License: GNU General Public License v3.0

PHP 79.67% Shell 20.33%
dns acme api inwx letsencrypt getssl acme-challenge dns-01

acme-dns-inwx's Introduction

ACME-DNS-INWX

Simple helper script for various Let's Encrypt clients. Developed for GetSSL and ACME.sh, tested at Debian and Ubuntu.

Initial setup

Download or clone the archive and extract it to a new folder.

Copy the example config file config/.inwx.ini to ~/.inwx.ini and insert your credentials. If enabled, enter your TOTP/2FA shared secret. Don't forget to check file permissions! (recommended: 0600)

Run it for the first time:

# Add the TXT record _acme-challenge.example.com
# with value "test" and set TTL to 300 seconds:
./scripts/acme-dns-inwx --add "example.com" "test"

# Check your nameserver: (wait some time)
dig TXT "_acme-challenge.example.com" +short

# Delete the TXT record _acme-challenge.example.com:
./scripts/acme-dns-inwx --del "example.com"

Take a look at the wiki for more examples.

Bugs? Feedback?

Open a new issue or drop me a line at [email protected]! :-)

Important: This project is not affiliated with INWX GmbH!

Important links...

acme-dns-inwx's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

op3rat0r

acme-dns-inwx's Issues

Von 3 auf 5 Wiederholungen bei Fehler erhöhen

Bei 2FA und allgemein. Es gibt zwei Schleifen dafür.

Die API reagiert einfach unzuverlässig, es gibt zu viele sporadische Timeouts. Eine Erklärung habe ich dafür leider noch nicht. Eventuell ist der DDoS-Schutz von INWX zu hart.

Dumm ist daran nur, dass manche Aktionen ohne Rückmeldung doppelt ausgeführt werden könnten. Beim Löschen von Records werden diese Fehler aber sowieso schon abgefangen.

subdomain-handling in gettssl >= v2.21

Getssl check the dns-txt-record for "_acme-challenge.subdomain.domain.extension" and the result is wrong. It is in getssl since version 2.21. Getssl version 2.20 still check the dns-txt-record for "_acme-challenge.subdomain".

idn_to_utf8()

Convert $domain at all doRequest calls:

function idn_to_utf8_wrapper($domain)
{
	if(defined('INTL_IDNA_VARIANT_UTS46'))
	{
		return idn_to_utf8($domain, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46);
	}

	return idn_to_utf8($domain);
}

Don't forget extension_loaded('intl') requirement check!

--
Reference: fnx-dns-tool

  • 299c3de4f53544b824e908ec137f0e10c290479c
  • 5ec4573771f56fa15578817caae43686ae26c6da
  • 765bc5650fe796f4e35e07bbe4734995746259a7

sleep nach jeder Anfrage?

Steht sowieso noch auskommentiert drinnen: sleep(mt_rand(3, 8));

Ohne diese kurze Wartezeit scheint es noch mehr sporadische Fehler zu geben, die in Wiederholungen enden.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.