From a470ed7eaed3b74f41fd0f4b964db555cc457b7f Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 27 Jan 2023 02:17:45 +0100 Subject: Get the HTTPS certificat of a website --- functions/cert.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 functions/cert.fish (limited to 'functions') diff --git a/functions/cert.fish b/functions/cert.fish new file mode 100644 index 0000000..b909faa --- /dev/null +++ b/functions/cert.fish @@ -0,0 +1,5 @@ +function cert -d "Retrieve the SSL certificat of a HTTPS website from the servername" + # PEM format + echo "Certificat of $argv[1] on port 443 (PEM format)" + openssl s_client -servername $argv[1] -connect $argv[1]:443 2>/dev/null