Add showSSL script to libary
This commit is contained in:
parent
6c43dc5415
commit
1147f240d3
|
@ -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}"
|
Loading…
Reference in New Issue