This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |