Skip to content

Instantly share code, notes, and snippets.

View Nepherte's full-sized avatar

Bart Verhoeven Nepherte

View GitHub Profile
@Nepherte
Nepherte / synology-import-ssl.sh
Last active May 30, 2024 17:17
Script to import an SSL certificate into a Synology NAS.
#!/usr/bin/env bash
# The id of the certificate to install.
CERT_ID="$1"
# The packages whose certificate to replace.
CERT_PKGS="${@:2}"
# The directory that holds to certificate to import.
CERT_IMPORT_DIR="/tmp/certificate/$CERT_ID"