citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit af761917232853e088fb91dffe8dcec6287b207b
parent 7d1b96934df2dd93cb4dab2a6ae2f069d79272dd
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 15 Apr 2021 17:53:55 -0700

cert: customizable ip

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mbin/cert | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/cert b/bin/cert @@ -1,6 +1,6 @@ #! /usr/bin/env nix-shell #! nix-shell -i bash -p openssl -out=$(echo "Q" | openssl s_client -connect "$1":"${2:-443}" -servername "$1") +out=$(echo "Q" | openssl s_client -connect "${2:-$1}":"${3:-443}" -servername "$1") cert=$(sed -ne ' /-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p # got the range, ok