Skip to content
Snippets Groups Projects
Commit b75495f9 authored by Bob Mottram's avatar Bob Mottram
Browse files

echo pin hashes

parent 94e5a1ab
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment