I’m trying to get certbot to fetch a certificate for imap.nocternity.net + vm-imap.internal.nocternity.net (the latter being in the cert’s DN) from a CSR, using dns-01 with RFC 2136 updates sent to a “remote” bind9 server.
I ran this command: su -s /bin/bash -c ‘certbot certonly --work-dir /var/lib/certificates/certbot/work --logs-dir /var/lib/certificates/certbot/logs --config-dir /var/lib/certificates/certbot/config --csr /var/lib/certificates/imap/vm-imap.internal.nocternity.net.csr --dns-rfc2136 --dns-rfc2136-credentials /var/lib/certificates/certbot-dns.ini’ certbot
It produced this output:
My web server is (include version): none whatsoever
The operating system my web server runs on is (include version): Devuan Ascii with certbot apt-pinned to Devuan Beowulf and certbot-dns-rfc2136 installed from github
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know):
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
My initial message was much longer and more precise than that, but I keep getting errors (which FF shows as “transmission errors”) when trying to edit the post. I’ll try re-writing the whole thing as a reply.
Performing the following challenges:
dns-01 challenge for imap.nocternity.net
dns-01 challenge for vm-imap.internal.nocternity.net
Waiting 60 seconds for DNS changes to propagate
Waiting for verification...
Cleaning up challenges
(4/4, which is the part of my post which apparently causes trouble)
I tried tcpdump’ing the whole thing both on the VM and on a linux box that acts as a router, and I got a few packets being received after the exception. I can’t seem to be able to post the tcpdump log though, but it shows my side sending a pair of acks (same seq), the other side sending a push, and my side resetting the connection.
The problem is apparently related to big requests sent using IPv6. Since I didn’t want to hardcode the address of the API webserver into /etc/hosts, I wrote a wrapper script that reads the IPv4 address from DNS and updates the file prior to running certbot. It seems to be working.