DANE HTTPS

Discussion in 'General' started by COLVIT, Jan 20, 2026.

  1. COLVIT

    COLVIT New Member

    Hi,
    is there a way to keep private key with acme.sh in order to setup HTTPS DANE ?

    With certbot we can user --reuse-key and --keep for this, but i don't find anything like this with acme.sh
     
  2. COLVIT

    COLVIT New Member

    ok, it looks like it's "--always-force-new-domain-key" to force privkey renewal.
    And... it seems it's enabled in ispconfig ?
     
  3. remkoh

    remkoh Well-Known Member HowtoForge Supporter

    That's correct. By default keys are renewed when certificates are renewed.
    That's hardcoded. You can change it yourself in the code but will need to do that again after every ispconfig upgrade.

    Or you change it in the certificate's config file after you have deployed a new certificate.
    Any change in the config file will be applied on the next renewal.
     
  4. COLVIT

    COLVIT New Member

    Hum, maybe an option to enable ou disable it way be a good idea.

    Do you know where it is hardcoded ?
     
  5. remkoh

    remkoh Well-Known Member HowtoForge Supporter

    For acme.sh it's line 88 in /usr/local/ispconfig/server/lib/classes/letsencrypt.inc.php
    Code:
    $acme_sh . ' --issue ' . $domain_args . ' -w /usr/local/ispconfig/interface/acme --always-force-new-domain-key ' . $conf_selection_arg . $certificate_type_arg,
    Just deleting "--always-force-new-domain-key" should be enough.
    For new certificates that is. For existing certificates you'll need to edit their config files.
     
    COLVIT likes this.
  6. COLVIT

    COLVIT New Member

    thnks for your answer.

    The config file will be overwritten too on update ?
     
  7. remkoh

    remkoh Well-Known Member HowtoForge Supporter

    No the config files are from acme.sh and certificate specific.
    Code:
    /root/.acme.sh/<domain.tld>/<domain.tld>.conf
    They have nothing to do with ispconfig itself and won't be touched by ispconfig updates.
     
    COLVIT and till like this.

Share This Page