rpmbuild-internal-ca-certif.../README.md
2024-08-25 22:19:29 +10:00

24 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 systems trusted CA directory (`/etc/pki/ca-trust/source/anchors/`).
- **Automatic Trust Update**: Runs `update-ca-trust` post-installation to refresh the CA trust database, ensuring that the new certificates are recognized by the system.
## How to Build the RPM
1. **Prepare the Environment**:
- Place your `.crt` files in the `certificates/` directory.
- Ensure `Makefile` and `internal-ca-certificates.spec` are in the project root directory.
2. **Build the RPM**:
- Run `make` in the terminal from the root directory of the project.
- The RPM package will be created in the `rpmbuild/RPMS/noarch/` directory.
3. **Install the RPM**:
- Use `rpm -ivh path/to/internal-ca-certificates-1.0-1.noarch.rpm` to install the RPM on your system.