Skip to content

Instantly share code, notes, and snippets.

View replace_synology_drive_cert.sh
# 1. Manually import a certificate through the Synology GUI and assign it for "Synology Drive Server" (and all other services you need that certificate for).
# A folder with random characters will be created into /usr/syno/etc/certificate/_archive/xxxxxx
# This is the folder name that need to be set for the variable "cert_folder_name" on the script
# 2. Get your 3 PEM files ready to copy over from your local machine/update server (privkey.pem, fullchain.pem, cert.pem)
# and put into a directory (this will be $CERT_DIRECTORY).
# 3. Ensure you have a user setup on synology that has ssh access (and ssh access is setup).
# This user will need to be able to sudo as root (i.e. add this line to sudoers, <USER> is the user you create):
# <USER> ALL=(ALL) NOPASSWD: /var/services/homes/<USER>/replace_synology_drive_cert.sh