Commit 0c70e45
cacert: Improve sourcing
Switch to fetching only certdata.txt directly from the upstream
repository (and a mirror), because:
- While it's possible to deduct that github/nss-dev is an NSS-project-owned
mirror repository, it's not trivial:
- Go to the homepage: https://firefox-source-docs.mozilla.org/security/nss/index.html
- Navigate to the source, e.g.
https://phabricator.services.mozilla.com/source/nss/
- Check the readme.md, which mentions github.com/nss-dev/nss
- GitHub is a mirror of the Mercurial repository, and while I was able
to confirm that the latest version does match, it leaves more room for
a malicious actor:
- It's unknown who owns the nss-dev GitHub organisation, there's no
public members and no contact information
- The mirroring automation from Mercurial to GitHub is not documented
- Git hashes by necessity don't match Mercurial hashes, so it's not
easy to verify that they match
- Previously the build and update script were more complicated and slow
by depending on the entire source, when we really only need a single file.
Furthermore, update the meta.homepage to point to the actual page that
mentions the root certificates, because the old one pointed to a curl
page which we don't even use anymore (if we ever even did, Git history
is inconclusive)
The cacert build was verified to be unchanged
(cherry picked from commit 0e7826f)1 parent e6ca949 commit 0c70e45
2 files changed
Lines changed: 25 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
| |||
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | | - | |
27 | | - | |
| 23 | + | |
28 | 24 | | |
29 | | - | |
| 25 | + | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 34 | | |
67 | 35 | | |
68 | 36 | | |
69 | 37 | | |
70 | 38 | | |
71 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
72 | 59 | | |
73 | 60 | | |
74 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
0 commit comments