PLEASE BEAR WITH ME I AM AN ABSOLUTE BEGINNER TRYING TO LEARN LINUX, JELLYFIN AND SSL CERTIFICATES
With the help of AI, I setup a Jellyfin server and also an SSL certificate to enable the address to have a https. AI told me to setup Jellyfin in a Docker Container, so I followed its instructions to do this, Jellyfin was unable to access the certificates which certbot put into /etc/letsencrypt/live/xxxx.casacam.net/ so it told me to create the script below:
#!/bin/sh
cp /etc/letsencrypt/live/xxxx.casacam.net/fullchain.pem /etc/jellyfin/ssl/
cp /etc/letsencrypt/live/xxxx.casacam.net/privkey.pem /etc/jellyfin/ssl/
chown root:jellyfin /etc/jellyfin/ssl/.pem
chmod 640 /etc/jellyfin/ssl/.pem
docker restart jellyfin
Which copies the certificates to a location that Jellyfin can access
it then told me to Make it executable with the command below
sudo chmod +x /etc/letsencrypt/renewal-hooks/deploy/copy-jellyfin-certs.sh
And then when certbot.timer runs it should also run the script above.
However the certificates date expired a few days ago (when I went to the website https://xxxx.casacam.net it complained the site was not secure and said the certificate had expired.
I then ran the commands in the script above manually line by line then restarted my rasberry pi, and all was well the site was secured again but I noticed that the cerificate that was now on the site had been issued in February (a month earlier). So this led me to believe that the certbot.timer had worked to renew the certificate files in /etc/letsencrypt/live/xxxx.casacam.net/ but I can only assume to script had not automatically run to copy these files to /etc/jellyfin/ssl/
Can anyone help me try to find out if the script (copy-jellyfin-certs.sh) is configured to run when the certbot.timer updates the SSL Certificate.
As say I am learning at a very basic level, AI has been a great help so far but I can't seem to get it to help me solve this problem.
Thank you in advance
Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: casacam.net
I ran this command:ls -l /etc/letsencrypt/renewal-hooks/deploy/copy-jellyfin-certs.sh
It produced this output: -rwxr-xr-x 1 root root 258 Dec 17 10:45 /etc/letsencrypt/renewal-hooks/deploy/copy-jellyfin-certs.sh
My web server is (include version): jellyfin 10.11.5
The operating system my web server runs on is (include version): Linux CWPi5 6.12.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1 (2025-09-16) aarch64 GNU/Linux
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know): I don't know
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): Certbot 4.0.0