feat: import Sea vHost single-server testing release

This commit is contained in:
canglan committed 2026-10-30 08:39:10 +08:00
commit 248badd33e
441 files changed
+63221

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set +e
printf '%s\n' '=== TLS-related configuration ==='
grep -nEi 'TLS|Cert|PEM|SSL' /www/server/pure-ftpd/etc/pure-ftpd.conf /etc/init.d/pure-ftpd 2>&1 || true
grep -nEi 'CertFile|--certfile|-2' /www/server/pure-ftpd/sbin/pure-config.pl /www/server/pure-ftpd/sbin/pure-config.py 2>&1 || true
printf '%s\n' '=== Pure-FTPd TLS options ==='
/www/server/pure-ftpd/sbin/pure-ftpd --help 2>&1 | grep -Ei 'tls|cert|pem|ssl' || true
printf '%s\n' '=== compiled certificate paths ==='
strings /www/server/pure-ftpd/sbin/pure-ftpd | grep -E '/[^ ]*(pure-ftpd|ssl)[^ ]*\.pem|pure-ftpd\.pem' | sort -u | head -n 30 || true
printf '%s\n' '=== candidate certificates ==='
find /www/server/pure-ftpd /etc/ssl/private /etc/pure-ftpd -xdev -maxdepth 5 -type f \( -name '*.pem' -o -name '*.crt' \) -print 2>/dev/null | while IFS= read -r candidate; do
printf '%s ' "${candidate}"
openssl x509 -in "${candidate}" -noout -subject 2>/dev/null || echo 'not-an-x509-certificate'
done
printf '%s\n' '=== running daemon identity ==='
for ftp_pid in $(pgrep pure-ftpd 2>/dev/null || true); do
printf 'pid=%s user=' "${ftp_pid}"
ps -o user= -p "${ftp_pid}"
ls -l "/proc/${ftp_pid}/fd" 2>&1 | grep -Ei 'pem|ssl|cert' || true
done