How to change letsencrypt postfix certificate CN (Ubuntu 24.04 auto-install)?

Discussion in 'Installation/Configuration' started by jar240, Aug 31, 2025 at 6:47 PM.

  1. jar240

    jar240 New Member

    Hi there. I need end up with a cert whose CN is different than the hostname of the server (default from the installation). I'm familiar with doing this manually, but don't want to interfere with any of ISPconfig's processes. What's the best way to accomplish this?
    Thanks,
    Chris
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Fix the hostname of your system by editing /etc/hosts and /etc/hostname files so that you get the correct hostname when you run:

    hostname -f

    command. If this command shows the correct new hostname, then run:

    ispconfig_update.sh --force

    let the updater reconfigure services and create a new SSL certificate.
     
  3. jar240

    jar240 New Member

    Thanks Till - that is a much broader scope than I want. The hostname of the server shouldn't need to change to accomplish this -- it's too global. Do you have a method that more directly and compatibly accomplishes what I'm seeking? (e.g. my hostname needs to remain server123.domain.tld while Postfix identifies (via TLS) as mail.domain.tld)

    Thanks...
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page