Repository navigation
[14.5-stable] Update ca-certificates to 20261020-r0 to stop trusting the compromised eMudhra CAs. #6913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rene
merged 2 commits into
lf-edge:14.5-stable
from
shjala:backport/14.5-ca-certificates-20261020
Nov 4, 2026
Merged
[14.5-stable] Update ca-certificates to 20261020-r0 to stop trusting the compromised eMudhra CAs. #6913
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # SPDX-License-Identifier: MIT | ||
| # Adapted from Alpine aports 3.16-stable/main/ca-certificates for EVE. | ||
| # Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> | ||
| # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | ||
| pkgname=ca-certificates | ||
| pkgver=20261020 | ||
| pkgrel=0 | ||
| pkgdesc="Common CA certificates PEM files from Mozilla" | ||
| url="https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/" | ||
| arch="all" | ||
| # There is a GPL-2.0-or-later script inside the source but it is not shipped | ||
| license="MPL-2.0 AND MIT" | ||
| makedepends_build="perl" | ||
| makedepends_host="openssl-dev" | ||
| subpackages="$pkgname-doc $pkgname-bundle::noarch" | ||
| # c_rehash is either in libcrypto1.0 or openssl depending on package, grr. replace both of them | ||
| replaces="libcrypto1.0 openssl openssl1.0" | ||
| options="!fhs !check" | ||
| triggers="ca-certificates.trigger=/usr/share/ca-certificates:/usr/local/share/ca-certificates:/etc/ssl/certs:/etc/ca-certificates/update.d" | ||
| install="$pkgname.post-deinstall" | ||
| source="https://distfiles.alpinelinux.org/distfiles/v3.22/ca-certificates-$pkgver.tar.bz2" | ||
|
|
||
| build() { | ||
| make | ||
| } | ||
|
|
||
| package() { | ||
| make install DESTDIR="$pkgdir" | ||
|
|
||
| ( | ||
| echo "# Automatically generated by $pkgname-$pkgver-r$pkgrel" | ||
| echo "# $(date -u)" | ||
| echo "# Do not edit." | ||
| cd "$pkgdir"/usr/share/ca-certificates | ||
| find . -name '*.crt' | sort | cut -b3- | ||
| ) > "$pkgdir"/etc/ca-certificates.conf | ||
|
|
||
| # generate the bundle in similar way as update-ca-certificates would do | ||
| find -- *.crt | sort | while read -r i; do | ||
| cat "$i" | ||
| printf "\n" | ||
| done > "$pkgdir"/etc/ssl/certs/ca-certificates.crt | ||
|
|
||
| mkdir -p "$pkgdir"/etc/apk/protected_paths.d | ||
| cat > "$pkgdir"/etc/apk/protected_paths.d/ca-certificates.list <<EOF | ||
| -etc/ssl/certs/ca-certificates.crt | ||
| -etc/ssl/certs/ca-cert-*.pem | ||
| -etc/ssl/certs/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].[r0-9]* | ||
| EOF | ||
|
|
||
| cat > "$pkgdir"/etc/ca-certificates/update.d/certhash <<EOF | ||
| #!/bin/sh | ||
| exec /usr/bin/c_rehash /etc/ssl/certs | ||
| EOF | ||
| chmod +x "$pkgdir"/etc/ca-certificates/update.d/certhash | ||
| } | ||
|
|
||
| bundle() { | ||
| pkgdesc="Pre generated bundle of Mozilla certificates" | ||
| replaces="libressl2.7-libcrypto" | ||
| provides="$pkgname-cacert=$pkgver-r$pkgrel" | ||
| mkdir -p "$subpkgdir"/etc/ssl/certs | ||
| mv "$pkgdir"/etc/ssl/certs/ca-certificates.crt \ | ||
| "$subpkgdir"/etc/ssl/certs/ | ||
| ln -s certs/ca-certificates.crt \ | ||
| "$subpkgdir"/etc/ssl/cert.pem | ||
| } | ||
|
|
||
| sha512sums=" | ||
| d28eb01751b1a914ffb5d8cb99e662f0a35a95148c21dcf98de1ab3108b54db9714a99472d07715023867f4f76a21f2a79a2bc1c7e9876ce5167fdd865ad2dd7 ca-certificates-20261020.tar.bz2 | ||
| " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/bin/sh | ||
| # SPDX-License-Identifier: MIT | ||
|
|
||
| # clean up broken symlinks store | ||
| find -L /etc/ssl/certs -maxdepth 1 -type l -delete | ||
| rmdir /etc/ssl/certs 2>/dev/null || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/sh | ||
| # SPDX-License-Identifier: MIT | ||
| /usr/sbin/update-ca-certificates --fresh >/dev/null 2>&1 | ||
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely build break: the
ca-certificates-bundlecopy looks in the wrong directory.ca-certificates-bundleis declared as a noarch subpackage (subpackages="$pkgname-doc $pkgname-bundle::noarch"in the APKBUILD).abuild -P /tmp/ca-packageswrites packages to$REPODEST/$repo/$arch, and noarch subpackages go to thenoarcharch directory — so the bundle lands in/tmp/ca-packages/main/noarch/, not/tmp/ca-packages/main/$(apk --print-arch)/.For the
ca-certificates-bundleiteration, thecpglob therefore matches nothing. Combined with the precedingrm -fand the script'sset -e, any populated cache that containsca-certificates-bundlewill have the old bundle deleted and then fail thecp→ the whole cache build aborts. (The arch-specificca-certificatespackage itself is fine, since it goes tomain/$arch/.)Suggest copying from whichever arch dir abuild used so both the arch package and the noarch bundle resolve:
Worth confirming against a real full image build (per the "Still required" items) — the local container test may not have gone through this exact
build-cache.shpath for the bundle.