Maybe it would be enough to copy the certificate string to a file and name it correctly but there’s also a tool to export the certs in pem format:
Download:
wget https://github.com/ldez/traefik-certs-dumper/releases/download/v2.8.3/traefik-certs-dumper_v2.8.3_linux_386.tar.gz
Extract:
tar -xzvf traefik-certs-dumper_v2.8.3_linux_386.tar.gz
Run the export:
You can find the results in the ./dump
directory. You may need to adapt traefik1
to the traefik instance name of your NS8 node.
Method to export pem:
Creates a directory per certificate and exports certificate.pem and privatekey.pem.
./traefik-certs-dumper file --source /home/traefik1/.local/share/containers/storage/volumes/traefik-acme/_data/acme.json --domain-subdir --crt-ext=.pem --key-ext=.pem --version v2
Alternative Method:
Creates a certs and a private directory and exports like domain.crt and domain.key.
./traefik-certs-dumper file --source /home/traefik1/.local/share/containers/storage/volumes/traefik-acme/_data/acme.json --version v2