]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
add org snippet checkssl
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 20 Apr 2022 11:36:51 +0000 (13:36 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 20 Apr 2022 11:36:51 +0000 (13:36 +0200)
complete code block to use curl to check start/expire date of ssl.

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/org-mode/checkssl [new file with mode: 0644]

diff --git a/snippets/org-mode/checkssl b/snippets/org-mode/checkssl
new file mode 100644 (file)
index 0000000..59f1c31
--- /dev/null
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: checkssl
+# key: checkssl_
+# --
+#+begin_src sh :results output :wrap SRC fundamental :epilogue true
+  curl -vvI https://$1 2>&1 | grep -E '(start date|expire date|subject)'
+#+end_src
+$0