Add showSSL script to libary

This commit is contained in:
Oliver Schraml 2022-10-12 11:47:32 +02:00
parent 6c43dc5415
commit 1147f240d3
Signed by: oliver.schraml
GPG Key ID: A55864B79D0D0228
1 changed files with 6 additions and 0 deletions

6
showSSL Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
tg_url=$(sed -E 's@https://([a-z0-9._-]+)/.*@\1@g' <<<"${QUTE_URL}")
ssl_data=$(echo | openssl s_client -connect ${tg_url}:443 -showcerts 2>/dev/null)
echo "${ssl_data}"
echo "$(openssl x509 -text <<<"${ssl_data}")"
echo "open -r -b qute://process/$$" >> "${QUTE_FIFO}"