Skip to content

Instantly share code, notes, and snippets.

View mrEckendonk's full-sized avatar
🎯
if (drinkCoffee){code();}

Mike van Eckendonk mrEckendonk

🎯
if (drinkCoffee){code();}
View GitHub Profile
@mrEckendonk
mrEckendonk / gist:7792f6441d9e9d60128ffb72ee74cf8b
Created April 4, 2025 12:33
Bitninja Add Ssl Termination OLS
#!/bin/bash
# Configuration
SSL_DIR="/var/local/enhance/website_ssl"
BITNINJA_CMD="bitninjacli --module=SslTerminating --add-cert"
# Find and process domains
find "${SSL_DIR}" -maxdepth 1 -type f -name "*.cert" | while read -r cert_file; do
# Extract domain name from certificate filename
domain=$(basename "${cert_file}" .cert)