Include a domain name in letsencrypt certificate?

Discussion in 'ISPConfig 3 Priority Support' started by webguyz, Jan 9, 2025.

  1. webguyz

    webguyz Active Member HowtoForge Supporter

    Hosting a website for a customer, lets say server1.acme.com and they want me to include the domain name in the certificate in this case acme.com. I don't know how to do this. I tried adding an aliasdomain and it let me add it and the domain shows up in /etc/apache2/acme.com.vhost as a ServerAlias, but when I go to remove / reissue the letsencrypt certificate will it fail since it does a verification of the DNS and acme.com will not be my IP range? Looking in the Letsencrypt docs its the -expand featureI would use to add an alternate name for just the domain name?
     
    Last edited: Jan 9, 2025
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    there needs to be an A or AAAA record for acme.com pointing to the server hosting that website.

    unless the server can be reached using that resolved domain name then letsencrypt cannot validate it and issue a certificate.
     
  3. webguyz

    webguyz Active Member HowtoForge Supporter

    Thats what I thought but wasn't sure. So it will probably fail if I try to include it. Thanks!
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    It must fail if there is no A or AAAA record for the domain.
     
  5. webguyz

    webguyz Active Member HowtoForge Supporter

    Thanks. Talking to customer about adding our IP as an alternate A record for acme.com in their DNS.
     
  6. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    not sure that will work... letscencrypt connects to the webserver to validate..
    adding another ip as an alternate A record will likely cause problems. i assume they're using it for another website somewhere else..
    if you add another ip in dns, they will all get returned in a dns lookup, but you don't know what ip the pc doing the lookup will use to connect to the target server.. someone trying to actually get to the acme.com site will get taken to your webserver, and letsencrypt, trying to validate the domain on your webserver, may try connecting to one of the other, already existing ip's.
     
  7. webguyz

    webguyz Active Member HowtoForge Supporter

    I just emailed with the owner of the domain and their tech said they should just point the actual A record to our IP as the only A record. We host their corporate website and right now they are doing a redirect internally at their firewall to point to our web server. If they point the single A record of acme.com to our IP and me setting up an aliasdomain for their domain acme.com or www.acme.com pointing to their website on our server it should resolve correctly.
     

Share This Page