mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-12-02 01:19:24 +01:00
Merge pull request #69 from mgedmin/patch-1
ZNC 1.6.0 & SSL: Quote the argument of echo to make it work with bash
This commit is contained in:
commit
8d0392f8bc
@ -70,11 +70,11 @@ from multiple places:
|
|||||||
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
|
||||||
unset SSSLCFFN
|
unset SSSLCFFN
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user