Browse Source

paypro: try to grab root certs from mozilla if github is not available.

patch-2
Christopher Jeffrey 10 years ago
parent
commit
4d9a752307
  1. 5
      browser/generate-trusted.sh

5
browser/generate-trusted.sh

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

Loading…
Cancel
Save