sane-ssl-dump: remove

i never used it
This commit is contained in:
Colin 2023-11-28 09:12:39 +00:00
parent e559f1b960
commit 8eb83bb283
3 changed files with 0 additions and 22 deletions

View File

@ -42,7 +42,6 @@ in
"sane-scripts.secrets-unlock"
"sane-scripts.secrets-update-keys"
"sane-scripts.shutdown"
"sane-scripts.ssl-dump"
"sane-scripts.sudo-redirect"
"sane-scripts.sync-from-servo"
"sane-scripts.vpn"

View File

@ -171,11 +171,6 @@ let
src = ./src;
pkgs = [ "inetutils" "systemd" ];
};
ssl-dump = static-nix-shell.mkBash {
pname = "sane-ssl-dump";
src = ./src;
pkgs = [ "openssl" ];
};
stop-all-servo = static-nix-shell.mkBash {
pname = "sane-stop-all-servo";
src = ./src;

View File

@ -1,16 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p openssl
# dump info about the provided SSL certificate
cert="$1"
maybe_sudo=
if ! (test -e "$cert")
then
cert="/var/lib/acme/${cert}/full.pem"
maybe_sudo=sudo
fi
# $maybe_sudo openssl x509 -in "$file" -text
$maybe_sudo openssl crl2pkcs7 -nocrl -certfile "$cert" | openssl pkcs7 -print_certs -text -noout