echo pin hashes

This commit is contained in:
Bob Mottram 2016-08-09 09:36:14 +01:00
parent 94e5a1ab57
commit b75495f9a2
1 changed files with 2 additions and 2 deletions

View File

@ -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