Let's Encrypt On Subdomains

Discussion in 'Installation/Configuration' started by olimortimer, Jan 25, 2017.

  1. olimortimer

    olimortimer Member

    I've just found an odd issue with Let's Encrypt...

    I have domain.co.uk setup, with Let's Encrypt SSL, and it was working fine.
    I then added beta.domain.co.uk, with Let's Encrypt SSL, and it made domain.co.uk redirect to beta.domain.co.uk, causing a redirect loop.

    Both had 'Auto-Subdomain' set to 'None'.

    Any ideas what could be causing this please? I'll try and do more testing, but I'm a bit reluctant because it's not a site I want to be offline.
  2. elmacus

    elmacus Member HowtoForge Supporter

    Both nonwww and www for domains and subdomain must work when letsencypt generate cert.
    Check your letsencrypt log.
  3. sjau

    sjau Local Meanie Moderator

    And you need to have a CNAME or A Record for every single (sub.)domain.tld in your dns zone file - at least I think it's still required. Do that means you can't have like * IN A xxx.xxx.xxx.xxx and request a LE cert for xxx.domain.tld

Share This Page