mirror of
https://github.com/ekaaty/ca-certificates-brazil.git
synced 2025-12-06 09:32:38 -03:00
Compare commits
11 Commits
2875e9ebf9
...
v2025.07.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2503ccb99d | ||
|
|
026ee513c1 | ||
|
|
bc93d34d16 | ||
|
|
7b75def10f | ||
|
|
3377b66eb0 | ||
|
|
37ed5325a6 | ||
|
|
98f868287c | ||
|
|
784af0a893 | ||
|
|
c54459693c | ||
|
|
33192b3bb5 | ||
|
|
f3835684cf |
@@ -3,7 +3,7 @@
|
|||||||
SHELL := bash
|
SHELL := bash
|
||||||
|
|
||||||
source:
|
source:
|
||||||
dnf -y install cmake gcc gcc-c++
|
dnf -y install cmake gcc gcc-c++ openssl
|
||||||
cmake --fresh -DBUILD_RPMS=ON -B build -S .
|
cmake --fresh -DBUILD_RPMS=ON -B build -S .
|
||||||
cmake --build build --target srpm
|
cmake --build build --target srpm
|
||||||
|
|
||||||
|
|||||||
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@@ -8,10 +8,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release-ci:
|
release-ci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
version: ${{ steps.get_metadata.outputs.version }}
|
|
||||||
tag: ${{ steps.get_metadata.outputs.tag }}
|
|
||||||
to_release: ${{ steps.newtag.outputs.to_release }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Local checkout
|
- name: Local checkout
|
||||||
@@ -20,14 +16,14 @@ jobs:
|
|||||||
- name: Install CI dependencies
|
- name: Install CI dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y -qq install cmake g++ gcc
|
sudo apt-get -y -qq install cmake openssl g++ gcc
|
||||||
|
|
||||||
- name: Get latest package metadata
|
- name: Get latest package metadata
|
||||||
id: get_metadata
|
id: get_metadata
|
||||||
run: |
|
run: |
|
||||||
cmake --fresh -B build -S .
|
cmake --fresh -B build -S .
|
||||||
echo "tag=v$(cat build/version)" >> $GITHUB_OUTPUT
|
echo "tag=v$(cat build/version)" >> $GITHUB_OUTPUT
|
||||||
echo "version=$(cat build/version)" >> $GITHUB_OUTPUT
|
echo "hash=$(sha256sum build/hash | sed 's/\s.*//g')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Check if package version has corresponding git tag
|
- name: Check if package version has corresponding git tag
|
||||||
id: tagged
|
id: tagged
|
||||||
@@ -43,16 +39,17 @@ jobs:
|
|||||||
id: newtag
|
id: newtag
|
||||||
if: steps.tagged.outputs.tagged == 0
|
if: steps.tagged.outputs.tagged == 0
|
||||||
run: |
|
run: |
|
||||||
git tag ${{ steps.get_metadata.outputs.tag }} \
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git tag -a ${{ steps.get_metadata.outputs.tag }} \
|
||||||
|
-m "New cert chain was released" \
|
||||||
|
--trailer "SHA256:${{ steps.get_metadata.outputs.hash }}" \
|
||||||
&& echo to_release=1 >> $GITHUB_OUTPUT \
|
&& echo to_release=1 >> $GITHUB_OUTPUT \
|
||||||
&& git push origin ${{ steps.get_metadata.outputs.tag }} \
|
&& git push origin ${{ steps.get_metadata.outputs.tag }} \
|
||||||
|| exit 0
|
|| exit 0
|
||||||
|
|
||||||
build-fedora:
|
- name: Create and publish GitHub release
|
||||||
needs: release-ci
|
if: steps.newtag.outputs.to_release == 1
|
||||||
uses: ./.github/workflows/fedora.yml
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
containers: "['fedora:latest', 'fedora:41']"
|
tag_name: ${{ steps.get_metadata.outputs.tag }}
|
||||||
version: ${{ needs.release-ci.outputs.version }}
|
|
||||||
to_release: ${{ needs.release-ci.outputs.to_release }}
|
|
||||||
tag: ${{ needs.release-ci.outputs.tag }}
|
|
||||||
|
|||||||
70
.github/workflows/fedora.yml
vendored
70
.github/workflows/fedora.yml
vendored
@@ -1,70 +0,0 @@
|
|||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
containers:
|
|
||||||
default: "['fedora:latest']"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
tag:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
to_release:
|
|
||||||
default: "0"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
version:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
max-parallel: 2
|
|
||||||
matrix:
|
|
||||||
image: ${{ fromJson(inputs.containers) }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container: ${{ matrix.image }}
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Prepare - local checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Prepare - install build dependencies
|
|
||||||
run: |
|
|
||||||
dnf -y install \
|
|
||||||
cmake \
|
|
||||||
gcc \
|
|
||||||
gcc-c++ \
|
|
||||||
git \
|
|
||||||
openssl \
|
|
||||||
rpm-build \
|
|
||||||
rpmdevtools \
|
|
||||||
tar
|
|
||||||
|
|
||||||
- name: Prepare - setup RPM build tree
|
|
||||||
run: |
|
|
||||||
rpmdev-setuptree
|
|
||||||
|
|
||||||
- name: Prepare - configure the source
|
|
||||||
run: |
|
|
||||||
cmake -B $(pwd)/build -S $(pwd)
|
|
||||||
|
|
||||||
- name: Build - create source tarball and SRPM package
|
|
||||||
run: |
|
|
||||||
cmake --build $(pwd)/build --target srpm
|
|
||||||
|
|
||||||
- name: Build - create RPM package
|
|
||||||
run: |
|
|
||||||
cmake --build $(pwd)/build --target rpms
|
|
||||||
|
|
||||||
- name: Publish - create GitHub release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
if: inputs.to_release == 1
|
|
||||||
with:
|
|
||||||
tag_name: ${{ inputs.tag }}
|
|
||||||
files: |
|
|
||||||
dist/*.rpm
|
|
||||||
@@ -32,9 +32,15 @@ include(CPackLists.txt)
|
|||||||
add_custom_target(clear-certs
|
add_custom_target(clear-certs
|
||||||
COMMAND rm -rf
|
COMMAND rm -rf
|
||||||
certs/
|
certs/
|
||||||
|
docs/
|
||||||
pki/
|
pki/
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_custom_target(clear-docs
|
||||||
|
COMMAND rm -rf
|
||||||
|
docs/
|
||||||
|
)
|
||||||
|
|
||||||
add_custom_target(certs
|
add_custom_target(certs
|
||||||
COMMAND xargs -n1
|
COMMAND xargs -n1
|
||||||
curl
|
curl
|
||||||
@@ -44,10 +50,19 @@ add_custom_target(certs
|
|||||||
&& cd certs
|
&& cd certs
|
||||||
&& (sha512sum -c --quiet ${HASH_FILE} || exit -1)
|
&& (sha512sum -c --quiet ${HASH_FILE} || exit -1)
|
||||||
&& unzip ACcompactado.zip
|
&& unzip ACcompactado.zip
|
||||||
|
&& rm -f ACcompactado.zip ${HASH_FILE}
|
||||||
DEPENDS
|
DEPENDS
|
||||||
clear-certs
|
clear-certs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_custom_target(docs ALL
|
||||||
|
COMMAND mkdir docs
|
||||||
|
&& mv certs/*.pdf docs/
|
||||||
|
DEPENDS
|
||||||
|
clear-docs
|
||||||
|
certs
|
||||||
|
)
|
||||||
|
|
||||||
add_custom_target(isrg-root-x2.crt
|
add_custom_target(isrg-root-x2.crt
|
||||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/crt2bundle.sh
|
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/crt2bundle.sh
|
||||||
pki/ca-trust-source/anchors/isrg-root-x2.crt
|
pki/ca-trust-source/anchors/isrg-root-x2.crt
|
||||||
@@ -82,6 +97,13 @@ add_custom_target(anchors ALL
|
|||||||
icp-brasil-ca-bundle.crt
|
icp-brasil-ca-bundle.crt
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Checks for OpeSSL utility
|
||||||
|
find_program(OPENSSL
|
||||||
|
NAMES openssl openssl3
|
||||||
|
REQUIRED
|
||||||
|
)
|
||||||
|
message("-- Check for OpenSSL utility: ${OPENSSL}")
|
||||||
|
|
||||||
# Checks which tool is used to update certificate keyring
|
# Checks which tool is used to update certificate keyring
|
||||||
find_program(UPDATE_CACERTS_TOOL
|
find_program(UPDATE_CACERTS_TOOL
|
||||||
NAMES
|
NAMES
|
||||||
@@ -110,4 +132,16 @@ install(
|
|||||||
${CMAKE_INSTALL_PREFIX}/${CACERT_INSTALL_DIR}
|
${CMAKE_INSTALL_PREFIX}/${CACERT_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(DOCS_INSTALL_DIR "share/doc/${PROJECT_NAME}")
|
||||||
|
install(
|
||||||
|
FILES
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/LICENSE
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/README.md
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/docs/cpsrootca.pdf
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/docs/DPCacraiz.pdf
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/docs/PSacraiz.pdf
|
||||||
|
DESTINATION
|
||||||
|
${CMAKE_INSTALL_PREFIX}/${DOCS_INSTALL_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
# vim: ts=2:sw=2:sts=2:et
|
# vim: ts=2:sw=2:sts=2:et
|
||||||
|
|||||||
@@ -61,6 +61,14 @@ configure_file(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(BUILD_RPMS)
|
if(BUILD_RPMS)
|
||||||
|
execute_process(
|
||||||
|
COMMAND bash -c
|
||||||
|
"LANG=C DATE=$(date +'%a %b %d %Y'); \
|
||||||
|
echo \"* $DATE %{packager} - ${PROJECT_VERSION}-1%{?dist}\"; \
|
||||||
|
echo \"- This is an automatically built package (See our Git URL for more info).\"; \
|
||||||
|
"
|
||||||
|
OUTPUT_VARIABLE CPACK_RPM_CHANGELOG
|
||||||
|
)
|
||||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/packaging/pkg.spec.in"
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/packaging/pkg.spec.in"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.spec"
|
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.spec"
|
||||||
@ONLY
|
@ONLY
|
||||||
|
|||||||
16
README.md
16
README.md
@@ -1,4 +1,5 @@
|
|||||||
# ca-certificates-brazil
|
# ca-certificates-brazil
|
||||||
|
---
|
||||||
The Brazilian Public Key Infrastructure: ICP-Brasil
|
The Brazilian Public Key Infrastructure: ICP-Brasil
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
@@ -10,3 +11,18 @@ It is observed that the model adopted by Brazil was single-root certification,
|
|||||||
and the ITI, in addition to playing the role of Root Certifying Authority - Root AC,
|
and the ITI, in addition to playing the role of Root Certifying Authority - Root AC,
|
||||||
also has the role of accrediting and discrediting the other participants in the
|
also has the role of accrediting and discrediting the other participants in the
|
||||||
chain, supervise and audit the processes.
|
chain, supervise and audit the processes.
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* [ICP-Brasil Root Certification Authority Certification Practices Statement (in Portuguese)](
|
||||||
|
https://acraiz.icpbrasil.gov.br/DPCacraiz.pdf
|
||||||
|
)
|
||||||
|
* [Certification Practice Statement Root Certification Authority of Brazil](
|
||||||
|
https://acraiz.icpbrasil.gov.br/cpsrootca.pdf
|
||||||
|
)
|
||||||
|
* [Security Policy of Root-CA (in Portuguese)](
|
||||||
|
https://acraiz.icpbrasil.gov.br/PSacraiz.pdf
|
||||||
|
)
|
||||||
|
|
||||||
|
These files may also have been distributed within the installation package provided
|
||||||
|
by your distribution.
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%global source_date_epoch_from_changelog 0
|
%global source_date_epoch_from_changelog 0
|
||||||
|
%global packager Christian Tosta <7252968+christiantosta@users.noreply.github.com>
|
||||||
|
|
||||||
%define __openssl %{_bindir}/openssl
|
%define __openssl %{_bindir}/openssl
|
||||||
|
|
||||||
@@ -43,6 +44,9 @@ chain, supervise and audit the processes.
|
|||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%doc %{_datadir}/doc/%{name}/*.pdf
|
||||||
|
%doc %{_datadir}/doc/%{name}/README.md
|
||||||
|
%license %{_datadir}/doc/%{name}/LICENSE
|
||||||
%{_datadir}/pki/ca-trust-source/anchors/isrg-root-x2.crt
|
%{_datadir}/pki/ca-trust-source/anchors/isrg-root-x2.crt
|
||||||
%{_datadir}/pki/ca-trust-source/anchors/lets-encrypt-ca-bundle.crt
|
%{_datadir}/pki/ca-trust-source/anchors/lets-encrypt-ca-bundle.crt
|
||||||
%{_datadir}/pki/ca-trust-source/anchors/icp-brasil-ca-bundle.crt
|
%{_datadir}/pki/ca-trust-source/anchors/icp-brasil-ca-bundle.crt
|
||||||
@@ -52,4 +56,4 @@ chain, supervise and audit the processes.
|
|||||||
%postun -p %{_bindir}/update-ca-trust
|
%postun -p %{_bindir}/update-ca-trust
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%autochangelog
|
@CPACK_RPM_CHANGELOG@
|
||||||
|
|||||||
3
sources
3
sources
@@ -5,3 +5,6 @@ https://letsencrypt.org/certs/lets-encrypt-e1.pem
|
|||||||
https://letsencrypt.org/certs/lets-encrypt-e2.pem
|
https://letsencrypt.org/certs/lets-encrypt-e2.pem
|
||||||
https://letsencrypt.org/certs/lets-encrypt-r3.pem
|
https://letsencrypt.org/certs/lets-encrypt-r3.pem
|
||||||
https://letsencrypt.org/certs/lets-encrypt-r4.pem
|
https://letsencrypt.org/certs/lets-encrypt-r4.pem
|
||||||
|
https://acraiz.icpbrasil.gov.br/DPCacraiz.pdf
|
||||||
|
https://acraiz.icpbrasil.gov.br/cpsrootca.pdf
|
||||||
|
https://acraiz.icpbrasil.gov.br/PSacraiz.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user