From 3647610e58b4a40f32f7d2be8fb66a3723f2b39b Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 25 Aug 2024 22:19:29 +1000 Subject: [PATCH] Initial commit - add readme --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1b64029 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# 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-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.