Jellyfin Forum
Self Signed Certificate generation problem - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: Self Signed Certificate generation problem (/t-self-signed-certificate-generation-problem)



Self Signed Certificate generation problem - kcryland - 2023-11-19

Hi,

Using Terminal on my Apple Silicon Mac Mini running the latest MacOS, I have followed the steps in the instructions to generate a self signed certificate posted here:
https://jellyfin.org/docs/general/networking/#self-signed-certificate

For Step 1, I ran the following command, (having removed the -days 365 option and adding -subj '/CN=localhost' option): 

openssl req -x509 -newkey rsa:4096 -keyout ./privkey.pem -out cert.pem -nodes -subj '/CN=jellyfin.lan' -subj '/CN=localhost'


This generated 2 files in my user directory on my Mac:
cert.pem
privkey.pem


I then ran the following command in Terminal per the instructions:

openssl pkcs12 -export -out jellyfin.pfx -inkey privkey.pem -in /usr/local/etc/letsencrypt/live/domain.org/cert.pem -passout pass:



But I get the following error in Terminal when doing so:

Error opening input file /usr/local/etc/letsencrypt/live/domain.org/cert.pem
/usr/local/etc/letsencrypt/live/domain.org/cert.pem: No such file or directory


I checked my drive (with hidden files and folders set to display) and do not see the 'etc' folder below /usr/local, let alone the subdirectories below that for letsencrypt and so on, as specified in the command to run in the instructions.

So. ...... does anyone know if there is there is a series of steps I am supposed to have followed prior to executing the above commands in Terminal (or a step I am supposed to take between the two commands in the instructions)?