From 1147f240d39c6281ecf2766d533c3fe26c0920cb Mon Sep 17 00:00:00 2001 From: suchademon <suchademon@sons-of-sparda.at> Date: Wed, 12 Oct 2022 11:47:32 +0200 Subject: [PATCH] Add showSSL script to libary --- showSSL | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 showSSL diff --git a/showSSL b/showSSL new file mode 100755 index 0000000..756b436 --- /dev/null +++ b/showSSL @@ -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}"