feat(makefile): add targets to install and remove CA cert on local PC
- Add install-ca and remove-ca targets to GNUmakefile. - Allows local installation/removal of certs/koji_ca_cert.crt into the system CA trust anchors. Co-developed-by: Gemini AI <renich+gemini@woralelandia.com> Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
This commit is contained in:
parent
08882ba0fe
commit
7f6d539ac5
2 changed files with 13 additions and 0 deletions
11
GNUmakefile
11
GNUmakefile
|
|
@ -32,3 +32,14 @@ bootstrap:
|
||||||
.PHONY: reset
|
.PHONY: reset
|
||||||
reset:
|
reset:
|
||||||
ansible-playbook --vault-pass-file=.pass reset.yaml
|
ansible-playbook --vault-pass-file=.pass reset.yaml
|
||||||
|
|
||||||
|
.PHONY: install-ca
|
||||||
|
install-ca:
|
||||||
|
cp certs/koji_ca_cert.crt /etc/pki/ca-trust/source/anchors/koji_ca_cert.crt
|
||||||
|
update-ca-trust
|
||||||
|
|
||||||
|
.PHONY: remove-ca
|
||||||
|
remove-ca:
|
||||||
|
rm -f /etc/pki/ca-trust/source/anchors/koji_ca_cert.crt
|
||||||
|
update-ca-trust
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ def get_siguldry_key_info():
|
||||||
"""
|
"""
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['SIGULDRY_SOCKET'] = '/run/siguldry-client-proxy/siguldry-client-proxy.socket'
|
env['SIGULDRY_SOCKET'] = '/run/siguldry-client-proxy/siguldry-client-proxy.socket'
|
||||||
|
env['CREDENTIALS_DIRECTORY'] = '/etc/credstore'
|
||||||
|
|
||||||
# Get key info
|
# Get key info
|
||||||
res = subprocess.run(
|
res = subprocess.run(
|
||||||
|
|
@ -199,6 +200,7 @@ def process_queue():
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env['PKCS11_MODULE_PATH'] = '/usr/lib64/pkcs11/libsiguldry_pkcs11.so'
|
env['PKCS11_MODULE_PATH'] = '/usr/lib64/pkcs11/libsiguldry_pkcs11.so'
|
||||||
env['SIGULDRY_SOCKET'] = '/run/siguldry-client-proxy/siguldry-client-proxy.socket'
|
env['SIGULDRY_SOCKET'] = '/run/siguldry-client-proxy/siguldry-client-proxy.socket'
|
||||||
|
env['CREDENTIALS_DIRECTORY'] = '/etc/credstore'
|
||||||
|
|
||||||
# Sign using rpmsign command with Sequoia backend macro definitions
|
# Sign using rpmsign command with Sequoia backend macro definitions
|
||||||
cmd = [
|
cmd = [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue