Troubleshooting failed Let's Encrypt certificate installations in Plesk

Follow

Comments

18 comments

  • Avatar
    Sean Owen

    Helpful

     

  • Avatar
    .

    You can also create a link from httpsdocs/.well-known to httpdocs/.well-known and keep option 'Run the website in compatibility mode for the legacy option "Separate SSL/TLS and non-SSL/TLS content"' enabled. This solved issue "The authorization token is not available at https://domain.tld/.well-known/acme-challenge/*** . To resolve the issue, make it is possible to download the token file via the above URL.".

  • Avatar
    QiQQ

    We also had a problem renewing the Let's Encrypt certificates. This was because we where having a URL rewrite rule that automatically redirected all requests from HTTP to HTTPS, As written above "Let's Encrypt creates temporary files in the depths of the domain's document root in order to create a certificate and verify that you own this domain". This temporary folder is named ".well-known". We excluded this folder from the rewrite rule, now Plesk Let's Encrypt extension is working properly. So add an exclude and it will work, you don't need to use all suggestions ass written above.

  • Avatar
    Lev Iurev

    @QiQQ correct. the same is briefly described in 6 step

  • Avatar
    Yulia Plokhotnikova

    @.

    Hello there,

    Thanks for sharing a feedback.

  • Avatar
    Moritz Kornher

    Also doesn't work if Docker Proxy rules are setup. Unfortunately this breaks the auto-renewal. Would be nice to see alternative authentication methods supported (i.e. DNS)

  • Avatar
    Ivan Postnikov

    @Moritz Kornher

    Thank you for sharing such case.

    Features regarding Let's Encrypt may be suggested here at Let's Encrypt official website.

  • Avatar
    Moritz Kornher

    Hi @Ivan
    I trust you already know that let's encrypt supports a DNS challenge and that in fact DNS-01 is the only way to validate wildcard domains.
    So just to be clear, this is a let's encrypt feature that is already available but the Plesk plugin does not support.

  • Avatar
    Ivan Postnikov

    @Moritz Kornher

    Yes, indeed, Let's Encrypt wildcard certificates are issued using DNS challenge.

    This feature will be released in future updates of Let's Encrypt extension. Plesk developers are working on update.

    All suggestions about additional required Plesk functionality may be left here.

     

  • Avatar
    Douglas Kelly

    These resolutions did not fix my problems (400 error). I've accomplished everything from this page.

    I have 3 other domains protected using the LetsEncrypt cert plugin, so I know it works, I just cannot find the issue with this domain. I also tried a CloudFlare SSL and that also shows that it's not valid. I've renamed the .htaccess, I've remmed the rewrite rules within Plesk - seriously everything I can find. 

    If anyone else has any other potential fixes, I'm all ears. 

    Also at the top of this article it says only 6 attempts per week - I've read other places that it's 5 attempts per hour. Which is true?

  • Avatar
    Artyom Baranov

    @Douglas Kelly,

    Hello! If this article did not help and there is no other article in our Knowledgebase which may help you, I can suggest contacting Plesk support according to the following article: https://support.plesk.com/hc/en-us/articles/213608509

  • Avatar
    SE

    Hello,

    when I want to issue the ssl for just a domain the following error is shown:

    Error: Could not issue a Let's Encrypt SSL/TLS certificate for mydomain.com.
    Details
    Invalid response from https://acme-v02.api.letsencrypt.org/acme/challenge/82wRRjsp4gIjvsvzsCnDdRJg2ZU9pPMu0jl49-7J73k/17801667041.
    Details:
    Type: urn:ietf:params:acme:error:unauthorized
    Status: 403
    Detail: User account ID doesn't match account ID in authorization

     

    other domains have not any problem and ssl is issued as well. just for a domain I have this problem.

     

    How can I solve this issue?

  • Avatar
    Vladimir Chernikov

    Hello @SE,

    The issue should be on Let's Encrypt databases side but we have a solution.

    1. Connect to the server via SSH
    2. Find the corresponding JSON files using the following commands. Use actual domain name and issuer email address:
    # grep -r "john_doe@example.com" /usr/local/psa/var/modules/letsencrypt/registrations
    # grep -r "example.com" /usr/local/psa/var/modules/letsencrypt/orders
    3. Remove the json files founded on step 2
    4. Install Let's Encrypt certificate

  • Avatar
    SE

    Hello @Vladimir Chernikov

    Thank you for your solution but my server is windows.

  • Avatar
    SE

    I finally solved the issue :)

    thanks to @Vladimir Chernikov

     

    1- go to the the following path:

    C:\Program Files (x86)\Plesk\var\modules\letsencrypt\orders

    2- Find the file that includes your domain log. you can note to modify date to find that.

    3- Remove the file you founded in step2.

    4- Install let's Encrypt certificate again.

  • Avatar
    Ivan Postnikov

    Hi @SE,

    Thank you for letting us know.

    This information may be useful for Pleskians.

  • Avatar
    Gjimi

    Hello,

    Even though SSL is disabled under Hosting Settings, Certificate: Not selected and SSL certificate Let's Encrypt is deleted, but many errors can still be seen in panel.log: Invalid response from http://xxx.com/.well-known/acme -challenge/cceIRPm...


    Why does Plesk still try to renew or enable certificates even though everything is disabled with SSL and Let's Encrypt is no longer installed for xxx.com domain?

    Thousands of files are in a few days / weeks, in the directory /acme-challenge/.
    this is unnecessary disk space and resource allocations.

Please sign in to leave a comment.

Have more questions? Submit a request