Revision ed08ef1a
Added by koszko almost 2 years ago
build.sh | ||
---|---|---|
200 | 200 |
GECKO_APPLICATIONS='' |
201 | 201 |
|
202 | 202 |
if [ "$BROWSER" = "chromium" ]; then |
203 |
CHROMIUM_KEY="$(dd if=/dev/urandom bs=32 count=1 2>/dev/null | base64)" |
|
204 |
echo "chromium key is" $CHROMIUM_KEY |
|
205 |
CHROMIUM_KEY="chromium-key-dummy-file-$CHROMIUM_KEY" |
|
206 |
CHROMIUM_KEY=$(echo $CHROMIUM_KEY | tr / -); |
|
207 |
touch $BUILDDIR/$CHROMIUM_KEY |
|
208 |
|
|
203 | 209 |
CHROMIUM_KEY="\n\ |
204 |
\n\ |
|
205 |
// WARNING!!!\n\ |
|
206 |
// EACH USER SHOULD REPLACE \"key\" WITH A UNIQUE VALUE!!!\n\ |
|
207 |
// OTHERWISE, SECURITY CAN BE TRIVIALLY COMPROMISED!\n\ |
|
208 |
//\n\ |
|
209 |
// A unique key can be generated with:\n\ |
|
210 |
// $ ssh-keygen -f /path/to/new/key.pem -t rsa -b 1024\n\ |
|
211 |
//\n\ |
|
212 |
// Only relevant to users of chrome-based browsers.\n\ |
|
213 |
// Users of Firefox forks are safe.\n\ |
|
214 |
\n\ |
|
215 |
\"key\": \"b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAlwAAAAdzc2gtcnNhAAAAAwEAAQAAAIEA+0GT5WNmRRo8e5tL9+BmNtY6aBPwLIgbPnLShYBMSR40iYwLTsccrkwBXb3bs1o4p6q5WJugI8Lsia+GXZc/XHGFkq7D1aWiTxlJLs8z0JC2TQ2/yatYmBMchogYGeeUfP7aI7JJZwpATts+VhIvgga/4FYj+DijMIEpwdckqFEAAAII4Dh7HOA4exwAAAAHc3NoLXJzYQAAAIEA+0GT5WNmRRo8e5tL9+BmNtY6aBPwLIgbPnLShYBMSR40iYwLTsccrkwBXb3bs1o4p6q5WJugI8Lsia+GXZc/XHGFkq7D1aWiTxlJLs8z0JC2TQ2/yatYmBMchogYGeeUfP7aI7JJZwpATts+VhIvgga/4FYj+DijMIEpwdckqFEAAAADAQABAAAAgEHB5/MhEKMFOs8e1cMJ97ZiWubiUPlWpcqyQmauLUj1nspg3JTBh8AWJEVkaxuFgU5gYCHQmRjC6yUdywyziOEkFA4r/WpX4WmbIe+GQHRHhitLN0dgF8N6/fVNOoa5StTdfZqyl23pVXyepoDNjrJFKyupqPMmpwfH5lGr9RwBAAAAQG76HflB/5j8P2YgIYX6dQT4Ei0SqiIjNVy7jFJUQDKSJg/PYkedE02JZJBJPcMYxEJUxXtMgq+upamNILfkmY0AAABBAP4v0O5dqjy16xDDFzb4DPNAcw5Za9KJaXKVkUuKXMNZOKTR0RC/upjNTmttY980RKdIx5zA25dO8cx563bSDIsAAABBAP0MaOpBiai/eRmLqhlthHODa+Mur6W3uc9PyhWhgDBjLNMR/doaYeyfVKxtIiN3a+HkN++G+vbokRweQv++bhMAAAANdXJ6QGxvY2FsaG9zdAECAwQFBg==\"," |
|
210 |
// WARNING!!!\n\ |
|
211 |
// EACH USER SHOULD REPLACE DUMMY FILE's VALUE WITH A UNIQUE ONE!!!\n\ |
|
212 |
// OTHERWISE, SECURITY CAN BE TRIVIALLY COMPROMISED!\n\ |
|
213 |
// Only relevant to users of chrome-based browsers.\n\ |
|
214 |
// Users of Firefox forks are safe.\n\ |
|
215 |
\"$CHROMIUM_KEY\"\ |
|
216 |
" |
|
216 | 217 |
else |
217 | 218 |
GECKO_APPLICATIONS="\n\ |
218 | 219 |
\"applications\": {\n\ |
Also available in: Unified diff
generate Chromium unique key automatically in `build.sh'