]> jfr.im git - z_archive/vpsm.git/blobdiff - devtemp/certs/list-crl
Adding start of SSL-certificate-stuff. easy-rsa
[z_archive/vpsm.git] / devtemp / certs / list-crl
diff --git a/devtemp/certs/list-crl b/devtemp/certs/list-crl
new file mode 100755 (executable)
index 0000000..d1d8a69
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# list revoked certificates
+
+CRL="${1:-crl.pem}"
+
+if [ "$KEY_DIR" ]; then
+    cd "$KEY_DIR" && \
+       $OPENSSL crl -text -noout -in "$CRL"
+else
+    echo 'Please source the vars script first (i.e. "source ./vars")'
+    echo 'Make sure you have edited it to reflect your configuration.'
+fi