Skip to content

Instantly share code, notes, and snippets.

View Nepherte's full-sized avatar

Bart Verhoeven Nepherte

View GitHub Profile
@Nepherte
Nepherte / auth.nepherte.com.sh
Last active January 13, 2022 04:59
Let's Encrypt hook to deploy an SSL certificate onto a Synology NAS for Radius and LDAP.
#!/usr/bin/env bash
set -e
function deploy_to_synology {
# The id of the certificate on the Synology NAS.
local CERT_ID="7RY4jQ"
# The packages on the Synology NAS that use the certificate.
local CERT_PKGS="radiusd slapd"
@Nepherte
Nepherte / synology-import-ssl.sh
Last active July 16, 2025 15:18
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"