Skip to content

Certificates

Donald A. Cupp Jr. edited this page Dec 15, 2024 · 2 revisions

How to add a certificate to a build

Your certificates will need to be base64(PEM) encoded and suffixed as either .crt or .pem

You will need to create a folder in /build/packages that contains a certs folder, and within the certs folder, we can make a folder to hold Certificate Authority certs.

 mkdir -p /build/packages/my-certificates/etc/pki/ca-trust/source/anchors/

Next create a dependencies file that pulls in ca-certificates

 echo ca-certificates > /build/packages/my-certificates/dependencies

We now need to include our new package in the build configuration

 echo "package my-certificates" >> /build/build.conf

You can drop any CA certificates you want in the /build/packages/my-certificates/etc/pki/ca-trust/source/anchors/, and then run build. This should link your cert into all the right places.