Skip to content

Commit

Permalink
get_pem_key() + autograph_stage.pem
Browse files Browse the repository at this point in the history
  • Loading branch information
escapewindow authored and catlee committed Feb 12, 2019
1 parent 430759b commit 204a753
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion get_mozilla_keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ function get_key() {
echo '"""'
}

function get_pem_key() {
filename=$1
name=$2
rev=${3-default}
url="https://hg.mozilla.org/mozilla-central/raw-file/${rev}/toolkit/mozapps/update/updater/${filename}"
echo "# From $url"
echo -n "$name = b\"\"\""
curl -s $url
echo '"""'
}

(
echo "#"
echo "# Automatically generated - do not edit!"
Expand Down Expand Up @@ -49,5 +60,5 @@ echo
get_key "dep2.der" "dep2_sha1" $SHA1_REV
echo

get_key "autograph_stage.der" "autograph_stage_sha384" $SHA384_REV
get_pem_key "autograph_stage.pem" "autograph_stage_sha384" $SHA384_REV
) > src/mardor/mozilla.py

0 comments on commit 204a753

Please sign in to comment.