mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-24 13:29:25 +01:00
pre-commit run --all-files
This commit is contained in:
parent
41533ef82e
commit
b5dde24de9
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -6,9 +6,9 @@
|
|||||||
* text=auto eol=lf linguist-detectable
|
* text=auto eol=lf linguist-detectable
|
||||||
|
|
||||||
# Built-in diff patterns (disabled by default).
|
# Built-in diff patterns (disabled by default).
|
||||||
*.css diff=css
|
*.css diff=css
|
||||||
*.html diff=html
|
*.html diff=html
|
||||||
*.php diff=php
|
*.php diff=php
|
||||||
*.{md,markdown} diff=markdown
|
*.{md,markdown} diff=markdown
|
||||||
|
|
||||||
# These don't feel like mine
|
# These don't feel like mine
|
||||||
|
@ -1 +1 @@
|
|||||||
* @Mikaela
|
* @Mikaela
|
||||||
|
@ -69,16 +69,16 @@ from multiple places:
|
|||||||
```bash
|
```bash
|
||||||
# Get server SSL certificate fingerprint in MD5, SHA1 and SHA256.
|
# Get server SSL certificate fingerprint in MD5, SHA1 and SHA256.
|
||||||
# Note that OpenSSL doesn't support IPv6 at time of writing (2015-01-13).
|
# Note that OpenSSL doesn't support IPv6 at time of writing (2015-01-13).
|
||||||
serversslcertfp () {
|
serversslcertfp() {
|
||||||
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null)
|
||||||
# To see all validity information
|
# To see all validity information
|
||||||
echo "$SSSLCFFN"
|
echo "$SSSLCFFN"
|
||||||
# For getting the fingerprints
|
# For getting the fingerprints
|
||||||
echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout
|
||||||
echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout
|
||||||
echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout
|
||||||
echo "$SSSLCFFN" | openssl x509 -sha512 -fingerprint -noout
|
echo "$SSSLCFFN" | openssl x509 -sha512 -fingerprint -noout
|
||||||
unset SSSLCFFN
|
unset SSSLCFFN
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -38,9 +38,9 @@ There isn't much point in signing things, unless you are able to verify them. Th
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers
|
sshAllowedSigners=$HOME/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers/allowed_signers
|
||||||
ssh-verify-file () {
|
ssh-verify-file() {
|
||||||
echo "$1 ${2:?Usage: ssh-verify-file <email> <file-to-verify>}" > /dev/null
|
echo "$1 ${2:?Usage: ssh-verify-file <email> <file-to-verify>}" > /dev/null
|
||||||
ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2
|
ssh-keygen -Y verify -f $sshAllowedSigners -I $1 -n file -s $2.sig < $2
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user