aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/methods.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-11-26 12:16:20 -0500
committerGitHub <noreply@github.com>2018-11-26 12:16:20 -0500
commit524bd722ef84d0b1dff60a68102402d06affe9ab (patch)
tree176c6d5a7592135044420ca10a8a2944dde2bc77 /components/net/fetch/methods.rs
parentd282618baac130a95e7b4a6f9d99312f35401dab (diff)
parent949c22401b111de44118be19914fa44db47d7b75 (diff)
downloadservo-524bd722ef84d0b1dff60a68102402d06affe9ab.tar.gz
servo-524bd722ef84d0b1dff60a68102402d06affe9ab.zip
Auto merge of #22254 - Darkspirit:ca_db_generator, r=paulrouget
Alternative CA database generator [resources/certs](https://github.com/servo/servo/blob/master/resources/certs) is Servo's CA database and was last updated on 3 Apr 2017. Symantec has been revoked in the meantime. [etc/cert_generator.js](https://github.com/servo/servo/blob/b9847e29537f2c7dc3515f28342f9b519f2c9790/etc/cert_generator.js) is an XPCShell script for updating the certs file, but I found it too complex to run, so I made a simpler script. What it does: 1. Download Mozilla's [official](https://wiki.mozilla.org/CA/Included_Certificates) CA database CSV file with curl and process it with awk: https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReportPEMCSV 2. rows end with "\n 3. split each row by `^"` and `","` into columns. (I had to remove `"$` because of servo-tidy.) 4. remove single and double quotes from column 30 5. if column 13 (12 in the csv file) contains `Websites` (some are Email-only), print column 30, the raw certificate 6. put everything into a `certs` file servo-tidy wasn't happy so I had to make it a bit uglier. lol > ./etc/cert_generator.sh:8: Line is longer than 80 characters > ./etc/cert_generator.sh:8: script is missing options "set -o errexit", "set -o nounset", "set -o pipefail" > ./etc/cert_generator.sh:8: variable substitutions should use the full "${VAR}" form > ./etc/cert_generator.sh:8: variable substitutions should use the full "${VAR}" form > ./etc/cert_generator.sh:8: variable substitutions should use the full "${VAR}" form > ./etc/cert_generator.sh:8: variable substitutions should use the full "${VAR}" form --- - [x] `./mach test-tidy` does not report any errors <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22254) <!-- Reviewable:end -->
Diffstat (limited to 'components/net/fetch/methods.rs')
0 files changed, 0 insertions, 0 deletions