#!/bin/bash get_fingerprints() { local hosts=$(host $1 | rev | cut -f 1 -d " " | rev) for ip in $hosts; do openssl x509 -in <(openssl s_client -connect $ip:9999 2>/dev/null) -text -noout -fingerprint done 2>/dev/null | \ grep -F 'SHA1 Fingerprint=' | \ cut -d "=" -f 2 | \ tr -d ':' | \ paste -sd "," } weechat -d "$HOME/.config/weechat" -r "$(cat <