Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
78 lines
2.4 KiB
Bash
Executable File
78 lines
2.4 KiB
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Verify SSL Certificate Configuration for All Domains
|
|
# Checks if SSL certificates are configured and working
|
|
|
|
set -e
|
|
|
|
DOMAINS=(
|
|
"sankofa.nexus"
|
|
"www.sankofa.nexus"
|
|
"phoenix.sankofa.nexus"
|
|
"www.phoenix.sankofa.nexus"
|
|
"the-order.sankofa.nexus"
|
|
"explorer.d-bis.org"
|
|
"rpc-http-pub.d-bis.org"
|
|
"rpc-ws-pub.d-bis.org"
|
|
"rpc-http-prv.d-bis.org"
|
|
"rpc-ws-prv.d-bis.org"
|
|
"dbis-admin.d-bis.org"
|
|
"dbis-api.d-bis.org"
|
|
"dbis-api-2.d-bis.org"
|
|
"secure.d-bis.org"
|
|
"mim4u.org"
|
|
"www.mim4u.org"
|
|
"secure.mim4u.org"
|
|
"training.mim4u.org"
|
|
"rpc.public-0138.defi-oracle.io"
|
|
)
|
|
|
|
GREEN='\033[0;32m'
|
|
RED='\033[0;31m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m'
|
|
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo "🔒 SSL Certificate Verification"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
|
|
success_count=0
|
|
fail_count=0
|
|
total=${#DOMAINS[@]}
|
|
|
|
for domain in "${DOMAINS[@]}"; do
|
|
echo -n "Testing $domain... "
|
|
|
|
# Test HTTPS connectivity
|
|
if timeout 5 curl -I -k -s "https://$domain" >/dev/null 2>&1; then
|
|
# Check if certificate is valid
|
|
cert_info=$(echo | timeout 5 openssl s_client -connect "$domain:443" -servername "$domain" 2>/dev/null | openssl x509 -noout -subject -issuer -dates 2>/dev/null || echo "")
|
|
|
|
if echo "$cert_info" | grep -q "Let's Encrypt\|CN=$domain"; then
|
|
echo -e "${GREEN}✅ HTTPS working, SSL certificate valid${NC}"
|
|
((success_count++))
|
|
else
|
|
echo -e "${YELLOW}⚠️ HTTPS works but certificate may be self-signed${NC}"
|
|
((fail_count++))
|
|
fi
|
|
else
|
|
echo -e "${RED}✗ HTTPS not accessible${NC}"
|
|
((fail_count++))
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo "📊 Results: $success_count/$total domains with valid SSL"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
|
|
if [ $fail_count -eq 0 ]; then
|
|
echo -e "${GREEN}✅ All domains have valid SSL certificates!${NC}"
|
|
exit 0
|
|
else
|
|
echo -e "${YELLOW}⚠️ $fail_count domain(s) need SSL configuration${NC}"
|
|
exit 1
|
|
fi
|