Certbot powerdns plugin unrecognized arguments

Hi

Im trying to use the powerdns certbot plugin (certbot-dns-powerdns · PyPI) to grab a wildcard cert. The plugin shows its installed:

certbot --version

certbot 2.5.0

certbot plugins --text

Saving debug log to /var/log/letsencrypt/letsencrypt.log


  • dns-powerdns
    Description: Obtain certificates using a DNS TXT record (if you are using
    PowerDNS for DNS.)
    Interfaces: Authenticator, Plugin
    Entry point: dns-powerdns = certbot_dns_powerdns.dns_powerdns:Authenticator

  • standalone
    Description: Runs an HTTP server locally which serves the necessary validation
    files under the /.well-known/acme-challenge/ request path. Suitable if there is
    no HTTP server already running. HTTP challenge only (wildcards not supported).
    Interfaces: Authenticator, Plugin
    Entry point: standalone = certbot._internal.plugins.standalone:Authenticator

  • webroot
    Description: Saves the necessary validation files to a
    .well-known/acme-challenge/ directory within the nominated webroot path. A
    seperate HTTP server must be running and serving files from the webroot path.
    HTTP challenge only (wildcards not supported).
    Interfaces: Authenticator, Plugin
    Entry point: webroot = certbot._internal.plugins.webroot:Authenticator


But whenever I try to run anything with the options it keeps saying unrecognized arguments:

certbot --authenticator certbot-dns-powerdns:dns-powerdns --certbot-dns-powerdns:dns-powerdns-credentials ~/pdns-credentials.ini certonly

usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: --certbot-dns-powerdns:dns-powerdns-credentials /root/pdns-credentials.ini

Any help would be much appreciated. Thank you

If I just run with --authenticator it says plugin not installed:

certbot certonly --authenticator certbot-dns-powerdns:dns-powerdns

Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested certbot-dns-powerdns:dns-powerdns plugin does not appear to be installed

Using --authenticator dns-powerdns works but still can't find the option for the credentials:

certbot certonly --authenticator dns-powerdns --certbot-dns-powerdns:dns-powerdns-credentials /root/pdns-credentials.ini --preferred-challenges dns --debug-challenges -d *.customer2.fangfree.com -d customer2.fangfree.com --agree-tos --email hostmaster@customer2.fangfree.com

usage:
certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: --certbot-dns-powerdns:dns-powerdns-credentials /root/pdns-credentials.ini

certbot ... \
        --authenticator certbot-dns-powerdns:dns-powerdns  \
        --certbot-dns-powerdns:dns-powerdns-credentials ~/pdns-credentials.ini \
        certonly
2 Likes

Try:

certbot --authenticator 'dns-powerdns' \
--certbot-dns-powerdns:dns-powerdns-credentials '/root/pdns-credentials.ini' \
certonly \
--debug-challenges \
-d *.customer2.fangfree.com -d customer2.fangfree.com \
--agree-tos --email hostmaster@customer2.fangfree.com

and

certbot --authenticator 'dns-powerdns' \
--dns-powerdns-credentials '/root/pdns-credentials.ini' \
certonly \
--debug-challenges \
-d *.customer2.fangfree.com -d customer2.fangfree.com \
--agree-tos --email hostmaster@customer2.fangfree.com
2 Likes

With modern Certbot versions, you shouldn't use the --plugin-name:plugin-options syntax any longer.

Just using --dns-powerdns-credentials should work indeed.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.