From 6bd3e4b62756fbc620fcaea883d641b462219d28 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Tue, 23 Nov 2021 15:45:57 +0100 Subject: [PATCH] Add x509remote function --- zsh.d/zshfunctions/x509remote | 6 ++++++ zsh.d/zshfunctions/x509remote.zwc | Bin 0 -> 704 bytes 2 files changed, 6 insertions(+) create mode 100644 zsh.d/zshfunctions/x509remote create mode 100644 zsh.d/zshfunctions/x509remote.zwc diff --git a/zsh.d/zshfunctions/x509remote b/zsh.d/zshfunctions/x509remote new file mode 100644 index 0000000..892706b --- /dev/null +++ b/zsh.d/zshfunctions/x509remote @@ -0,0 +1,6 @@ +if [ -r "$1" ]; then + openssl s_client -connect $1 < /dev/null | \ + openssl x509 -noout -text | less +else + echo "x509remote " +fi diff --git a/zsh.d/zshfunctions/x509remote.zwc b/zsh.d/zshfunctions/x509remote.zwc new file mode 100644 index 0000000000000000000000000000000000000000..65d120f5496748c9d0e009ebadcb5e2ad1d47d15 GIT binary patch literal 704 zcmcJNu}i~16vn?x(iFS2r4~90EiMIXz=DbhU7Wi*DWnH2#9Z54rGuN`(r)cm2pt^# z2mC{vI=cEt_+64(!9@oTKJMjx@7}xnk-VF8a4XP0I>m2Rl|==SR=#lC%MMN3$7f@C zr?f=1V*%D0c%)aZ0A3MDa&DFA;!Q#wdFE^~=OPxjPca5JR77fN`{X{J0O&+V$ hb1C*p@P9)rNOg@9d7gV?|o=2!W5zMtO}Z@>Tm literal 0 HcmV?d00001