Coder Social home page Coder Social logo

froonix / acme-dns-nc Goto Github PK

View Code? Open in Web Editor NEW
25.0 5.0 4.0 39 KB

๐ŸŒ Use netcup CCP/DNS-API for ACME's dns-01 challenge

License: GNU General Public License v3.0

PHP 74.94% Shell 25.06%
netcup dns api acme letsencrypt getssl acme-challenge dns-01

acme-dns-nc's People

Contributors

killerbees19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

acme-dns-nc's Issues

PHP 8.1 compatibility

After upgrading to PHP 8.2 this script throws an error. It gives a possible solution but as I don't know php I cannot create a patch myself:

Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator manual, Installer None
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for ronnylindner.de
Running manual-auth-hook command: acme-dns-nc/scripts/certbot-nc-auth
Error output from manual-auth-hook command certbot-nc-auth:
PHP Fatal error: Uncaught ErrorException: SoapClient::__construct(): The "ssl_method" option is deprecated. Use "ssl" stream context options instead in acme-dns-nc/scripts/acme-dns-nc:253
Stack trace:
#0 [internal function]: error_handler()
#1 acme-dns-nc/scripts/acme-dns-nc(253): SoapClient->__construct()
#2 acme-dns-nc/scripts/acme-dns-nc(120): NCCCP->__construct()
#3 {main}
thrown in acme-dns-nc/scripts/acme-dns-nc on line 253

Waiting for verification...
Challenge failed for domain DOMAIN
dns-01 challenge for DOMAIN
Cleaning up challenges
Running manual-cleanup-hook command: acme-dns-nc/scripts/certbot-nc-cleanup
manual-cleanup-hook command "acme-dns-nc/scripts/certbot-nc-cleanup" returned error code 255
Error output from manual-cleanup-hook command certbot-nc-cleanup:
PHP Fatal error: Uncaught ErrorException: SoapClient::__construct(): The "ssl_method" option is deprecated. Use "ssl" stream context options instead in acme-dns-nc/scripts/acme-dns-nc:253
Stack trace:
#0 [internal function]: error_handler()
#1 acme-dns-nc/scripts/acme-dns-nc(253): SoapClient->__construct()
#2 acme-dns-nc/scripts/acme-dns-nc(120): NCCCP->__construct()
#3 {main}
thrown in acme-dns-nc/scripts/acme-dns-nc on line 253
Attempting to renew cert (DOMAIN) from renewal/DOMAIN.conf produced an unexpected error: Some challenges have failed.. Skipping.

Update documentation

Hi,

Your acme-dns-nc is working just fine, but the documentation to integrate it into acme.sh is wrong.

dns_fnx_nc.sh should look something like this:

#!/usr/bin/env sh

dns_fnx_nc_add() {
  fulldomain=$1
  txtvalue=$2
  _info "Using myapi"
  _debug fulldomain "$fulldomain"
  _debug txtvalue "$txtvalue"
  /usr/local/sbin/acme-dns-nc "$fulldomain" "$txtvalue"
  return $?
}

#Usage: fulldomain txtvalue
#Remove the txt record after validation.
dns_fnx_nc_rm() {
  fulldomain=$1
  txtvalue=$2
  _info "Using myapi"
  _debug fulldomain "$fulldomain"
  _debug txtvalue "$txtvalue"
  /usr/local/sbin/acme-dns-nc "$fulldomain"
  return $?
}

acme.sh expects it to be a shell script and have these two functions in it.

Regards,
thorus

idn_to_ascii()

Convert $domain at all doRequest calls:

function idn_to_ascii_wrapper($domain)
{
	if(defined('INTL_IDNA_VARIANT_UTS46'))
	{
		return idn_to_ascii($domain, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46);
	}

	return idn_to_ascii($domain);
}

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

--
Reference: fnx-dns-tool

  • 299c3de4f53544b824e908ec137f0e10c290479c
  • 5ec4573771f56fa15578817caae43686ae26c6da
  • 765bc5650fe796f4e35e07bbe4734995746259a7

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.