forked from microsoft/azurelinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added distrusted CAs to the cert bundles. (microsoft#11440)
- Loading branch information
Showing
9 changed files
with
350 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -6,6 +6,8 @@ | |
|
||
%define p11_format_base_bundle ca-bundle.trust.base.p11-kit | ||
|
||
%define p11_format_distrusted_bundle ca-bundle.trust.distrusted.p11-kit | ||
|
||
%define p11_format_microsoft_bundle ca-bundle.trust.microsoft.p11-kit | ||
|
||
# List of packages triggering legacy certs generation if 'ca-certificates-legacy' | ||
|
@@ -45,7 +47,7 @@ Name: ca-certificates | |
# When updating, "Epoch, "Version", AND "Release" tags must be updated in the "prebuilt-ca-certificates*" packages as well. | ||
Epoch: 1 | ||
Version: %{azl}.0.0 | ||
Release: 7%{?dist} | ||
Release: 8%{?dist} | ||
License: MPLv2.0 | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -69,6 +71,8 @@ Source21: certdata.base.txt | |
Source22: bundle2pem.sh | ||
# The certdata.microsoft.txt is provided by Microsoft's Trusted Root Program. | ||
Source23: certdata.microsoft.txt | ||
# The certdata.distrusted.txt is provided by Microsoft's Trusted Root Program. | ||
Source24: certdata.distrusted.txt | ||
|
||
BuildRequires: /bin/ln | ||
BuildRequires: asciidoc | ||
|
@@ -146,6 +150,7 @@ cp -p %{SOURCE20} . | |
|
||
%convert_certdata %{SOURCE21} | ||
%convert_certdata %{SOURCE23} | ||
%convert_certdata %{SOURCE24} | ||
|
||
#manpage | ||
cp %{SOURCE10} %{name}/update-ca-trust.8.txt | ||
|
@@ -186,6 +191,9 @@ install -p -m 644 %{SOURCE18} %{buildroot}%{catrustdir}/source/README | |
# Microsoft certs | ||
%install_bundles %{SOURCE23} %{p11_format_microsoft_bundle} | ||
|
||
# Distrusted certs | ||
%install_bundles %{SOURCE24} %{p11_format_distrusted_bundle} | ||
|
||
# TODO: consider to dynamically create the update-ca-trust script from within | ||
# this .spec file, in order to have the output file+directory names at once place only. | ||
install -p -m 755 %{SOURCE2} %{buildroot}%{_bindir}/update-ca-trust | ||
|
@@ -257,13 +265,16 @@ rm -f %{pkidir}/tls/certs/*.{0,pem} | |
%{_bindir}/bundle2pem.sh %{pkidir}/tls/certs/%{classic_tls_bundle} | ||
|
||
%files | ||
%defattr(-,root,root) | ||
# Microsoft certs bundle file with trust | ||
%{_datadir}/pki/ca-trust-source/%{p11_format_microsoft_bundle} | ||
|
||
%files base | ||
%defattr(-,root,root) | ||
%{_datadir}/pki/ca-trust-source/%{p11_format_base_bundle} | ||
|
||
%files shared | ||
%defattr(-,root,root) | ||
%license LICENSE | ||
|
||
# symlinks for old locations | ||
|
@@ -307,6 +318,9 @@ rm -f %{pkidir}/tls/certs/*.{0,pem} | |
%dir %{pkidir}/tls | ||
%dir %{pkidir}/tls/certs | ||
|
||
# Distrusted CAs | ||
%{_datadir}/pki/ca-trust-source/%{p11_format_distrusted_bundle} | ||
|
||
%ghost %{catrustdir}/extracted/pem/tls-ca-bundle.pem | ||
%ghost %{catrustdir}/extracted/pem/email-ca-bundle.pem | ||
%ghost %{catrustdir}/extracted/pem/objsign-ca-bundle.pem | ||
|
@@ -315,15 +329,21 @@ rm -f %{pkidir}/tls/certs/*.{0,pem} | |
%ghost %{catrustdir}/extracted/edk2/cacerts.bin | ||
|
||
%files tools | ||
%defattr(-,root,root) | ||
# update/extract tool | ||
%{_bindir}/update-ca-trust | ||
|
||
%{_mandir}/man8/update-ca-trust.8.gz | ||
|
||
%files legacy | ||
%defattr(-,root,root) | ||
%{_bindir}/bundle2pem.sh | ||
|
||
%changelog | ||
* Wed Dec 11 2024 Pawel Winogrodzki <[email protected]> - 3.0.0-8 | ||
- Update adding Microsoft distrusted CAs. | ||
- Explicitly set default file ownership to root:root. | ||
|
||
* Tue Aug 13 2024 CBL-Mariner Servicing Account <[email protected]> - 3.0.0-7 | ||
- Updating Microsoft trusted root CAs. | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ Name: prebuilt-ca-certificates-base | |
# When updating, "Epoch, "Version", AND "Release" tags must be updated in the "ca-certificates" package as well. | ||
Epoch: 1 | ||
Version: %{azl}.0.0 | ||
Release: 7%{?dist} | ||
Release: 8%{?dist} | ||
License: MIT | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -46,6 +46,9 @@ find %{buildroot} -name README -delete | |
%{_sysconfdir}/pki/java/cacerts | ||
|
||
%changelog | ||
* Wed Dec 11 2024 Pawel Winogrodzki <[email protected]> - 3.0.0-8 | ||
- Update adding Microsoft distrusted CAs. | ||
|
||
* Tue Aug 13 2024 CBL-Mariner Servicing Account <[email protected]> - 3.0.0-7 | ||
- Making 'Release' match with 'ca-certificates' | ||
|
||
|
This file contains 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ Name: prebuilt-ca-certificates | |
# When updating, "Epoch, "Version", AND "Release" tags must be updated in the "ca-certificates" package as well. | ||
Epoch: 1 | ||
Version: %{azl}.0.0 | ||
Release: 7%{?dist} | ||
Release: 8%{?dist} | ||
License: MIT | ||
Vendor: Microsoft Corporation | ||
Distribution: Azure Linux | ||
|
@@ -49,6 +49,9 @@ find %{buildroot} -name README -delete | |
%{_sysconfdir}/pki/java/cacerts | ||
|
||
%changelog | ||
* Wed Dec 11 2024 Pawel Winogrodzki <[email protected]> - 3.0.0-8 | ||
- Update adding Microsoft distrusted CAs. | ||
|
||
* Tue Aug 13 2024 CBL-Mariner Servicing Account <[email protected]> - 3.0.0-7 | ||
- Making 'Release' match with 'ca-certificates' | ||
|
||
|
This file contains 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 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 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 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