Cannot issue new certificate on new server

Hi,

I’m trying to issue new certificates for on the new server for wunner-software.de (https://crt.sh/?q=wunner-software.de), but however, it doesn’t work.
For skatebuddies.de on the same ip it worked with the same command.
I’m using manual mode and trying to create it for the domain itself and for subdomains with a wildcard:
certbot certonly --manual -d "wunner-softare.de" -d "*.wunner-software.de" --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory

And I get asked twice for TXT DNS record. After this, I’m getting:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for wunner-software.de
dns-01 challenge for wunner-softare.de

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your server, please ensure you're okay with that.

Are you OK with your IP being logged?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name
_acme-challenge.wunner-software.de with the following value:

4S1th84JgNkptRxoQbHqAVAXNc36fR7ydCGVJ4MANz4

Before continuing, verify the record is deployed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name
_acme-challenge.wunner-softare.de with the following value:

iIVgGFFR4EX7nkdL6Z1GPqoig8NO4YvCHjvBrsNegO8

Before continuing, verify the record is deployed.
(This must be set up in addition to the previous challenges; do not remove,
replace, or undo the previous challenge tasks yet. Note that you might be
asked to create multiple distinct TXT records with the same name. This is
permitted by DNS standards.)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue
Waiting for verification...
Challenge failed for domain wunner-software.de
Challenge failed for domain wunner-softare.de
dns-01 challenge for wunner-software.de
dns-01 challenge for wunner-softare.de
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: wunner-softare.de
   Type:   dns
   Detail: DNS problem: NXDOMAIN looking up TXT for
   _acme-challenge.wunner-softare.de - check that a DNS record exists
   for this domain
 - The following errors were reported by the server:

   Domain: wunner-software.de
   Type:   unauthorized
   Detail: Incorrect TXT record
   "iIVgGFFR4EX7nkdL6Z1GPqoig8NO4YvCHjvBrsNegO8" found at
   _acme-challenge.wunner-software.de

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

My domain is:
wunner-software.de

I ran this command:
see above

It produced this output:
see above

My web server is (include version):
nginx/1.19.0

The operating system my web server runs on is (include version):
openSUSE Tumbleweed 20200610

My hosting provider, if applicable, is:
Hetzner for server with Reverse DNS and inwx for DNS.

I can login to a root shell on my machine (yes or no, or I don’t know):
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
On old server, on the new one not.

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
certbot 1.4.0

The logs (the part under the token):

2020-06-19 15:27:12,859:WARNING:certbot._internal.auth_handler:Challenge failed for domain wunner-software.de
2020-06-19 15:27:12,859:WARNING:certbot._internal.auth_handler:Challenge failed for domain wunner-softare.de
2020-06-19 15:27:12,859:INFO:certbot._internal.auth_handler:dns-01 challenge for wunner-software.de
2020-06-19 15:27:12,859:INFO:certbot._internal.auth_handler:dns-01 challenge for wunner-softare.de
2020-06-19 15:27:12,859:DEBUG:certbot._internal.reporter:Reporting to user: The following errors were reported by the server:

Domain: wunner-software.de
Type:   unauthorized
Detail: Incorrect TXT record "iIVgGFFR4EX7nkdL6Z1GPqoig8NO4YvCHjvBrsNegO8" found at _acme-challenge.wunner-software.de

To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address.
2020-06-19 15:27:12,859:DEBUG:certbot._internal.reporter:Reporting to user: The following errors were reported by the server:

Domain: wunner-softare.de
Type:   dns
Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.wunner-softare.de - check that a DNS record exists for this domain
2020-06-19 15:27:12,859:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 91, in handle_authorizations
    self._poll_authorizations(authzrs, max_retries, best_effort)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 180, in _poll_authorizations
    raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.

2020-06-19 15:27:12,860:DEBUG:certbot._internal.error_handler:Calling registered functions
2020-06-19 15:27:12,860:INFO:certbot._internal.auth_handler:Cleaning up challenges
2020-06-19 15:27:12,860:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/certbot", line 11, in <module>
    load_entry_point('certbot==1.4.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python3.8/site-packages/certbot/main.py", line 15, in main
    return internal_main.main(cli_args)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 1347, in main
    return config.func(config, plugins)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 1233, in certonly
    lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 121, in _get_and_save_cert
    lineage = le_client.obtain_and_enroll_certificate(domains, certname)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/client.py", line 409, in obtain_and_enroll_certificate
    cert, chain, key, _ = self.obtain_certificate(domains)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/client.py", line 343, in obtain_certificate
    orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/client.py", line 390, in _get_order_and_authorizations
    authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 91, in handle_authorizations
    self._poll_authorizations(authzrs, max_retries, best_effort)
  File "/usr/lib/python3.8/site-packages/certbot/_internal/auth_handler.py", line 180, in _poll_authorizations
    raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.

Hi @alpham8

before looking deeper:

there is a missing w. softare instead of software.

I confirm the wrong domain name in the command. However, but this doesn’t also work:

certbot certonly --manual -d "wunner-software.de" -d "*.wunner-software.de" --preferred-challenges dns-01 --server https://acm
e-v02.api.letsencrypt.org/directory

The output is:

Waiting for verification...
Challenge failed for domain wunner-software.de
dns-01 challenge for wunner-software.de
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: wunner-software.de
   Type:   unauthorized
   Detail: Incorrect TXT record
   "O3t7DAQ5lBchr_AkYxUkg0S8WUBycyO-HpswvGAhfPU" found at
   _acme-challenge.wunner-software.de

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

Now checked your domain - https://check-your-website.server-daten.de/?q=wunner-software.de#txt - there is only one TXT entry.

Two entries with the same domain name and different TXT entries are required if you use the command

-d "wunner-software.de" -d "*.wunner-software.de"

Looks like you overwrite the first value, so Letsencrypt sees only one (not two) values.

Thank you guys for your attention. I got it now by using this plugin: https://github.com/oGGy990/certbot-dns-inwx

(by using the pip install variant)

Works great and I need it for reissue any certificate

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