echo pin hashes
This commit is contained in:
parent
94e5a1ab57
commit
b75495f9a2
|
@ -54,7 +54,7 @@ function pin_all_certs {
|
|||
|
||||
PIN_HEADER="Public-Key-Pins 'pin-sha256=\"${KEY_HASH}\"; pin-sha256=\"${BACKUP_KEY_HASH}\"; max-age=5184000; includeSubDomains';"
|
||||
sed -i "s|Public-Key-Pins.*|${PIN_HEADER}|g" $file
|
||||
echo "Pinned $DOMAIN_NAME"
|
||||
echo "Pinned $DOMAIN_NAME with keys $KEY_HASH $BACKUP_KEY_HASH"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -113,6 +113,6 @@ if ! grep -q "add_header Public-Key-Pins" $SITE_FILENAME; then
|
|||
echo $'Pinning failed'
|
||||
fi
|
||||
|
||||
echo "Pinned $DOMAIN_NAME with hash $KEY_HASH"
|
||||
echo "Pinned $DOMAIN_NAME with keys $KEY_HASH $BACKUP_KEY_HASH"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue