Package the internal ca-certificates
|
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://git.query.consul/unkin/rpmbuild-internal-ca-certificates/pulls/4 |
||
|---|---|---|
| certificates | ||
| .drone.yml | ||
| internal-ca-certificates.spec | ||
| Makefile | ||
| README.md | ||
RPMBuild: internal-ca-certificates
Overview
This project provides an RPM package that installs self-signed CA certificates into the system's trusted certificate store. The RPM package places the certificates in the appropriate directory and automatically updates the system's CA trust to recognise the new certificates.
Features
- Automated Installation: Copies your self-signed CA certificates to the system’s trusted CA directory (
/etc/pki/ca-trust/source/anchors/). - Automatic Trust Update: Runs
update-ca-trustpost-installation to refresh the CA trust database, ensuring that the new certificates are recognized by the system.
How to Build the RPM
-
Prepare the Environment:
- Place your
.crtfiles in thecertificates/directory. - Ensure
Makefileandinternal-ca-certificates.specare in the project root directory.
- Place your
-
Build the RPM:
- Run
makein the terminal from the root directory of the project. - The RPM package will be created in the
rpmbuild/RPMS/noarch/directory.
- Run
-
Install the RPM:
- Use
rpm -ivh path/to/internal-ca-certificates-1.0-1.noarch.rpmto install the RPM on your system.
- Use