• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Let's Encrypt : how to retrieve the DNS acme-challenge BEFORE it executes the certificate request

kizzamp1337

New Pleskian
Hi

I am having the current case where I am migrating a bunch of domains from another webhost to my brand new Plesk server.

Now, when starting the Let's Encrypt process, sometimes it does this through DNS, and sometimes through a file in .well-known/acme-challenge.

To start off, when does it choose either? Because I am unable to choose this myself. Most likely when I do a nameserver swap, and the Plesk server itself notices that the nameservers are pointed to end up in its own Plesk machine, it thinks "oh let's do it through the DNS-record this time".
When this is the case, I can just take the acme-challenge that it's asking me to add to the DNS (which it of course does in its own zone) so i can put it on the OLD dns zone on the OLD nameservers, which makes sure that the certificate will already be generated.

Currently, this is not the case, causing Plesk to start the certificate request by placing a file in .well-known/acme-challenge/
Of course, Let's Encrypt can not yet resolve to this, as the nameservers might not have propagated.

A work-around would be to know what the acme-challenge for DNS is, manually add it to the OLD dns zone of the OLD nameservers, causing it to be validated before all root DNS servers propagated to use the new namservers.

I initially tried it by using the "error message" acme-challenge and placing it in .well-known/acme-challenge/ on the OLD ftp, however that doesn't work as every time I try to request the certificate, it generates a new acme-challenge..

Does anybody have any idea on how I could overcome this issue?

Thanks in advance!
 
Back
Top