Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | Today | - | ||||
bmc-vmi-ca/ | H | 20-Aug-2024 | - | 290 | 193 | |
dist/ | H | 31-Aug-2023 | - | 148 | 121 | |
subprojects/ | H | 29-Mar-2022 | - | 32 | 23 | |
test/ | H | 29-Nov-2024 | - | 2,142 | 1,754 | |
.clang-format | H A D | 20-Dec-2024 | 3.7 KiB | 137 | 135 | |
.clang-tidy | H A D | 19-Dec-2024 | 2.6 KiB | 78 | 74 | |
.gitignore | H A D | 29-Mar-2022 | 182 | 8 | 7 | |
.openbmc-enforce-gitlint | H A D | 19-Sep-2022 | 0 | |||
LICENSE | H A D | 07-Mar-2021 | 11.1 KiB | 202 | 169 | |
OWNERS | H A D | 02-Dec-2023 | 1.9 KiB | 61 | 56 | |
README.md | H A D | 31-Aug-2023 | 2.5 KiB | 81 | 57 | |
argument.cpp | H A D | 22-Sep-2022 | 1 KiB | 33 | 28 | |
argument.hpp | H A D | 29-Mar-2022 | 487 | 20 | 13 | |
certificate.cpp | H A D | 05-Dec-2024 | 21.3 KiB | 703 | 566 | |
certificate.hpp | H A D | 11-May-2023 | 10.7 KiB | 321 | 115 | |
certs_manager.cpp | H A D | 29-Nov-2024 | 36.4 KiB | 1,138 | 973 | |
certs_manager.hpp | H A D | 20-Aug-2024 | 13.9 KiB | 344 | 108 | |
config.h.in | H A D | 10-May-2023 | 1,014 | 27 | 18 | |
csr.cpp | H A D | 11-Oct-2023 | 2.4 KiB | 88 | 73 | |
csr.hpp | H A D | 11-May-2023 | 1.3 KiB | 58 | 34 | |
mainapp.cpp | H A D | 29-Nov-2024 | 2.2 KiB | 75 | 44 | |
meson.build | H A D | 22-Jul-2023 | 2.1 KiB | 101 | 85 | |
meson.options | H A D | 31-Aug-2023 | 742 | 35 | 28 | |
watch.cpp | H A D | 29-Nov-2024 | 2.9 KiB | 117 | 102 | |
watch.hpp | H A D | 11-May-2023 | 1.8 KiB | 72 | 31 | |
x509_utils.cpp | H A D | 23-Jun-2024 | 8.3 KiB | 263 | 213 | |
x509_utils.hpp | H A D | 24-Mar-2022 | 2 KiB | 67 | 17 |
README.md
1# phosphor-certificate-manager 2 3Certificate management allows to replace the existing certificate and private 4key file with another (possibly CA signed) Certificate key file. Certificate 5management allows the user to install both the server and client certificates. 6 7## To Build 8 9This project can be built with `meson`. The typical `meson` workflow is: 10`meson builddir && ninja -C builddir`. 11 12## To Run 13 14Multiple instances of `phosphor-certificate-manager` are usually run on the bmc 15to support management of different types of certificates. 16 17```text 18Usage: ./phosphor-certificate-manager [options] 19Options: 20 --help Print this menu 21 --type certificate type 22 Valid types: client,server,authority 23 --endpoint d-bus endpoint 24 --path certificate file path 25 --unit=<name> Optional systemd unit need to reload 26``` 27 28### Https certificate management 29 30**Purpose:** Server https certificate 31 32```bash 33./phosphor-certificate-manager --type=server --endpoint=https \ 34 --path=/etc/ssl/certs/https/server.pem --unit=bmcweb.service 35``` 36 37### CA certificate management 38 39**Purpose:** Client certificate validation 40 41```bash 42./phosphor-certificate-manager --type=authority --endpoint=truststore \ 43 --path=/etc/ssl/certs/authority --unit=bmcweb.service 44``` 45 46### LDAP client certificate management 47 48**Purpose:** LDAP client certificate validation 49 50```bash 51./phosphor-certificate-manager --type=client --endpoint=ldap \ 52 --path=/etc/nslcd/certs/cert.pem 53``` 54 55## D-Bus Interface 56 57`phosphor-certificate-manager` is an implementation of the D-Bus interface 58defined in 59[this document](https://github.com/openbmc/phosphor-dbus-interfaces/blob/a3d0c212a1e734a77fbaf11c7561c59e59d514da/xyz/openbmc_project/Certs/README.md). 60 61D-Bus service name is constructed by 62"xyz.openbmc_project.Certs.Manager.{Type}.{Endpoint}" and D-Bus object path is 63constructed by "/xyz/openbmc_project/certs/{type}/{endpoint}". 64 65Take https certificate management as an example. 66 67```bash 68./phosphor-certificate-manager --type=server --endpoint=https \ 69 --path=/etc/ssl/certs/https/server.pem --unit=bmcweb.service 70``` 71 72D-Bus service name is "xyz.openbmc_project.Certs.Manager.Server.Https" and D-Bus 73object path is "/xyz/openbmc_project/certs/server/https". 74 75## Usage in openbmc/bmcweb 76 77OpenBMC [bmcweb](https://github.com/openbmc/bmcweb) exposes various 78[REST APIs](https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/certificate_service.hpp) 79for certificate management on the BMC, which leverages functionalities of 80`phosphor-certificate-manager` via D-Bus. 81