diff --git a/.zshrc b/.zshrc index 79eb96d..bd6a80d 100644 --- a/.zshrc +++ b/.zshrc @@ -1,6 +1,6 @@ ################################ - # 2022. WTFPL. # + # WTFPL. # # .zshrc of David Aizenberg # # david.aizenberg@paranoici.org# ################################ @@ -64,6 +64,12 @@ function fzf-ssh () { zle reset-prompt } +# src: https://stackoverflow.com/a/59412853 +function seecert () { + nslookup $1 + (openssl s_client -showcerts -servername $1 -connect $1:443 <<< "Q" | openssl x509 -text | grep -iA2 "Validity") +} + zle -N fzf-ssh bindkey '^o' fzf-ssh