Skip to content
Discussion options

You must be logged in to vote

As i was struggling on that point, here was my solution for the certs, using acme.sh for the dns challenge with renew. As i have no real clue, i created with chatgpt :) This one gives me certs, downloads the root, which acme did not and checks if update is needed.
Then copy to destination dirs, in the format mosquitto is accepting it.
There is a daily cronjob running my script (conf file needed too, see below script):

duckdns_acmerenew.sh:

#!/bin/bash
set -euo pipefail

CONFIG_FILE="/etc/duckdns_acme.conf"

if [ ! -f "$CONFIG_FILE" ]; then
  echo "❌ Fehler: Config-Datei $CONFIG_FILE nicht gefunden!"
  exit 1
fi

source "$CONFIG_FILE"

log() {
  echo -e "$1"
  if [ -n "${LOGFILE:-}" ]; then

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yoshilee
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants