From 529e8fb407d89f2514a4a9879f408795838f98bc Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 27 Jan 2023 02:20:05 +0100 Subject: Usefull check SSL date --- functions/sslcheckdate.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 functions/sslcheckdate.fish (limited to 'functions') diff --git a/functions/sslcheckdate.fish b/functions/sslcheckdate.fish new file mode 100644 index 0000000..64c5957 --- /dev/null +++ b/functions/sslcheckdate.fish @@ -0,0 +1,5 @@ +function sslcheckdate -d "Check the validity date of a distant SSL server" + # PEM format + echo "Validity dates of certificat of $argv[1] on port 443 (PEM format)" + echo "Q" | openssl s_client -servername $argv[1] -connect $argv[1]:443 2>/dev/null | openssl x509 -noout -dates +end -- cgit v1.2.3