From b5dde24de9d6225e2cb36cb34a8e54047c656e77 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 8 Jun 2024 09:08:36 +0300 Subject: [PATCH] pre-commit run --all-files --- .gitattributes | 6 +++--- CODEOWNERS | 2 +- blog/_posts/2015-02-24-znc160-ssl.md | 20 +++++++++---------- ...2-08-22-ssh-signing-verifying-functions.md | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.gitattributes b/.gitattributes index d738239..3075c6b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,9 +6,9 @@ * text=auto eol=lf linguist-detectable # Built-in diff patterns (disabled by default). -*.css diff=css -*.html diff=html -*.php diff=php +*.css diff=css +*.html diff=html +*.php diff=php *.{md,markdown} diff=markdown # These don't feel like mine diff --git a/CODEOWNERS b/CODEOWNERS index 8c96a51..f9ff4c4 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @Mikaela +* @Mikaela diff --git a/blog/_posts/2015-02-24-znc160-ssl.md b/blog/_posts/2015-02-24-znc160-ssl.md index fb88ca4..197c760 100644 --- a/blog/_posts/2015-02-24-znc160-ssl.md +++ b/blog/_posts/2015-02-24-znc160-ssl.md @@ -69,16 +69,16 @@ from multiple places: ```bash # Get server SSL certificate fingerprint in MD5, SHA1 and SHA256. # Note that OpenSSL doesn't support IPv6 at time of writing (2015-01-13). -serversslcertfp () { - SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null) - # To see all validity information - echo "$SSSLCFFN" - # For getting the fingerprints - echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout - echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout - echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout - echo "$SSSLCFFN" | openssl x509 -sha512 -fingerprint -noout - unset SSSLCFFN +serversslcertfp() { + SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null) + # To see all validity information + echo "$SSSLCFFN" + # For getting the fingerprints + echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout + echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout + echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout + echo "$SSSLCFFN" | openssl x509 -sha512 -fingerprint -noout + unset SSSLCFFN } ``` diff --git a/blog/_posts/2022-08-22-ssh-signing-verifying-functions.md b/blog/_posts/2022-08-22-ssh-signing-verifying-functions.md index 079aad4..5d61b81 100644 --- a/blog/_posts/2022-08-22-ssh-signing-verifying-functions.md +++ b/blog/_posts/2022-08-22-ssh-signing-verifying-functions.md @@ -38,9 +38,9 @@ There isn't much point in signing things, unless you are able to verify them. Th ```bash sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers -ssh-verify-file () { - echo "$1 ${2:?Usage: ssh-verify-file }" > /dev/null - ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2 +ssh-verify-file() { + echo "$1 ${2:?Usage: ssh-verify-file }" > /dev/null + ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2 } ```