Commit Graph
3 Commits
  • Exit with separate failure if in DNS manual mode
    In our environment we use DNS manual mode and take the TXT record
    output of acme.sh and process it with Ansible to install the records
    (then we call renew later when the records have been pushed to the DNS
    servers by a whole bunch of other bits).
    
    One problem is that after getting/showing the TXT records, acme.sh
    always returns 1.  This makes it difficult to tell if there is
    actually an error condition.
    
    Since we have set the manual-mode flag, not installing the DNS records
    is an expected correct result.  This returns a separate error code for
    this situation (3), which can be distinguished in automation.
  • dns_rackspace: search for domain
    The current call uses the /domains end-point which lists all domains.
    This only returns 100 domains at a time, so for long domain lists you
    may not match and find the required ID.
    
    Switch to using the search interface that only returns values matching
    the requested domain.  This will avoid missing results.
    
    Reported by @jjamfd.
    
    Closes: #2944
  • Update account.json on account update
    When running --updateaccount, the ca/<ca>/account.json file isn't
    updated with the new response showing the updated account details.
    This can be a bit confusing if you add an email to the account but
    then you're not sure if it actually applied looking at this file.
    
    Write out the new response on successful account updates.