Cannot install Let's Encrypt certificate in Plesk: Install certificate failure: Unable to set certificate name

Follow

Comments

4 comments

  • Avatar
    Sid

    We migrated a sub-domain that had a cert assigned, on the new server, we received the same error as above however the sub-domain cert was mapped to the parent domain!

    In the Domains table the "cert_rep_id" column was 0 for the sub-domain and in the parent domain it was set to 42, everything else was OK.

    In the Repository table there were 3 mappings, all mapped to the parent:

    MariaDB [psa]> select * from Repository where rep_id =42;
    +--------+--------------+
    | rep_id | component_id |
    +--------+--------------+
    | 42 | 50 |
    | 42 | 51 |
    | 42 | 52 |
    +--------+--------------+
    3 rows in set (0.00 sec)

     

    The Certificates table contained (domain masked):

    | 50 | Lets Encrypt parentdomain.com | 42 | parentdomain.com |
    | 51 | parentdomain.com | 42 | parentdomain.com |
    | 52 | Lets Encrypt subdomain.parentdomain.com | 42 | parentdomain.com |

    Deleting the entry 42,52 in the Repository table and inserting 43,52 and then updating the sub-domain entry (column == cert_rep_id) in the Domains table to 43 fixed the issue.

    Naturally 43 was not used and the next highest number.....

    Hope this helps!

    Sid

     

  • Avatar
    Anzhelika Khapaknysh

    Hi @Sid! Thanks for sharing all these details!

    It looks like you've faced the bug described in the article #115002622874. Feel free to follow that to be notified when the bug is fixed.

  • Avatar
    Arnaud

    [debian]

    there is no logs directyory in /opt/psa/var/modules/letsencrypt/

  • Avatar
    Anzhelika Khapaknysh

    Hi @Arnaud!
    The article has been updated with the actual info.

    Thanks for noticing!

Please sign in to leave a comment.

Have more questions? Submit a request