Skip to content

Instantly share code, notes, and snippets.

@yoyosan
Last active June 30, 2022 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoyosan/961f7916fb0166e354aac41f3372a440 to your computer and use it in GitHub Desktop.
Save yoyosan/961f7916fb0166e354aac41f3372a440 to your computer and use it in GitHub Desktop.
Renew SSL certificate for yolosan.xyz in True NAS

For Nextcloud

Log into NAS ssh:

iocage console nextcloud
pkg install py38-certbot py38-certbot-nginx
certbot renew --nginx
service nginx restart

Alternative: https://github.com/acmesh-official/acme.sh

For Emby

iocage console nextcloud
cd /usr/local/etc/letsencrypt/live/yolosan.go.ro
openssl pkcs12 -export -out emby.pfx -inkey privkey.pem -in cert.pem -certfile fullchain.pem
exit
cp /mnt/media1/iocage/jails/nextcloud/root/usr/local/etc/letsencrypt/live/yolosan.go.ro/emby.pfx /mnt/media1/iocage/jails/emby/root/etc/certs
# restart emby from the interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment