Skip to content

Commit

Permalink
paypro: try to grab root certs from mozilla if github is not available.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Jul 21, 2014
1 parent 8725516 commit 4d9a752
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion browser/generate-trusted.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

# Mozilla Root Certs
# https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/included/
# http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
# https://raw.githubusercontent.com/joyent/node/master/tools/certdata.txt

wget https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h \
|| curl -OJ https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h
|| wget 'http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1' \
|| curl -OJ https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h \
|| curl -OJ 'http://mxr.mozilla.org/mozilla-central/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'

mv node_root_certs.h lib/RootCerts.js
pushd lib &> /dev/null
Expand Down

0 comments on commit 4d9a752

Please sign in to comment.