Problem with Letsencrypt certificates on deleted subdomains

Discussion in 'General' started by uniQ, May 11, 2024.

  1. uniQ

    uniQ New Member

    Hi,
    I have a strange problem with my current server running the latest ISPConfig.
    I created a new website for my domain "example.com" and configured a letsencrypt certificate for it. Then I decided to add a subdomain called "sub.example.com" which redirects to another URL. Everything worked great until I deleted the subdomain.
    Every few months, my domain "example.com"gets a new letsencrypt certificate which my browser reports as invalid, because the CN is now "sub.example.com" instead of just "example.com".

    Disabling and re-enabling the SSL encryption via ISPConfig does not fix the problem.
    Is this a bug or am I missing something?

    Thanks in advance!
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Probably not.
    Have you removed the subdomain and alias domain from the parent website certificate? See in ISPConfig Panel Sites -tab the subdomain for website and aliasdomain for website menu entries.
     
  3. uniQ

    uniQ New Member

    I already deleted the subdomain. Is there another way to remove the entries from the parent website certificate?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  5. uniQ

    uniQ New Member

    Thanks again for your help. I took some screenshots from the ISPConfig Adminpanel as well as from the acme.sh logs. It seems that the subdomain is indeed not removed properly.

    ISPConfig Panel:
    1.png
    2.png

    Main website an subdomain folder showing up in acme.sh folder:
    4.png

    Subdomain acme.sh folder:
    3.png

    Acme.sh Log:
    5.png
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Try unticking the Let's Encrypt box on the parent website, then use LE client commands to delete the certificate. Then tick the Let's Encrypt box back.
    I feel it is strange you would need to do that, though. If aliasdomains and subdomains are removed and new certificate created for the parent domain it should no longer have those alias and subs.
    Those ISPConfig Panel screenshots: are you sure no nonprinting character is in those search boxes? That would cause nothing to be shown. Make sure they are empty.
    You hide the domain names in the log listings, so I could see nothing useful there.
     
  7. uniQ

    uniQ New Member

    I'll try that and report back, thanks.

    EDIT: I cleaned up all certificates for the domain and subdomain. So far, no more signs of the old subdomain prefix. :) Thanks again!
     
    Last edited: May 14, 2024

Share This Page