|
@ -2,20 +2,22 @@ |
|
|
|
|
|
|
|
|
# Grab the node root certs. This will be our trusted certs file. |
|
|
# Grab the node root certs. This will be our trusted certs file. |
|
|
|
|
|
|
|
|
# wget https://raw.githubusercontent.com/joyent/node/master/tools/certdata.txt |
|
|
# Mozilla Root Certs |
|
|
|
|
|
# https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/included/ |
|
|
|
|
|
# https://raw.githubusercontent.com/joyent/node/master/tools/certdata.txt |
|
|
|
|
|
|
|
|
wget https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h \ |
|
|
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 |
|
|
|| curl -OJ https://raw.githubusercontent.com/joyent/node/master/src/node_root_certs.h |
|
|
|
|
|
|
|
|
mv node_root_certs.h lib/browser/Trusted.js |
|
|
mv node_root_certs.h lib/RootCerts.js |
|
|
pushd lib/browser &> /dev/null |
|
|
pushd lib &> /dev/null |
|
|
|
|
|
|
|
|
sed -i '$s/,$//g' Trusted.js |
|
|
sed -i '$s/,$//g' RootCerts.js |
|
|
|
|
|
|
|
|
echo "module.exports = ["$'\n'"$(cat Trusted.js)" > Trusted.js |
|
|
echo "module.exports = ["$'\n'"$(cat RootCerts.js)" > RootCerts.js |
|
|
echo "];" >> Trusted.js |
|
|
echo "];" >> RootCerts.js |
|
|
|
|
|
|
|
|
sed -i 's/^"/+ "/g' Trusted.js |
|
|
sed -i 's/^"/+ "/g' RootCerts.js |
|
|
sed -i 's/^+ "-----B/"-----B/g' Trusted.js |
|
|
sed -i 's/^+ "-----B/"-----B/g' RootCerts.js |
|
|
|
|
|
|
|
|
popd &> /dev/null |
|
|
popd &> /dev/null |
|
|