From 977dca3039b0a7b1ced0f5e2b1d9abcfd57c0aac Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Jun 04 2021 18:29:09 +0000 Subject: Use the system env and not the session env for the local CA The session env caused the local CA to try to use /run/certmonger/.config/certmonger/certmonger.conf for its configuration file which is both temporary and not exactly ideal. Use the system environment as well so that /etc/certmonger/certmonger.conf is the configuration file. The problem was that users didn't know how to manage this file and it didn't persist. The local CA is designed just for developers but this wasn't discoverable at all and the shipped certmonger.conf has a [local] section so confusion abounded. https://pagure.io/certmonger/issue/101 --- diff --git a/src/Makefile.am b/src/Makefile.am index 13bd87d..53571c5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -268,7 +268,7 @@ scep_submit_LDADD = $(CURL_LIBS) $(XML_LIBS) $(NSS_LIBS) \ $(GMP_LIBS) $(UUID_LIBS) $(LTLIBICONV) $(POPT_LIBS) local_submit_CFLAGS = $(AM_CFLAGS) $(NSS_CFLAGS) local_submit_SOURCES = local.c env.h store.h store-gen.c submit-o.c submit-o.h \ - submit-u.c submit-u.h env-session.c env-shared.c log.c \ + submit-u.c submit-u.h env-system.c env-shared.c log.c \ log.h prefs.c prefs.h prefs-o.c prefs-o.h tm.c tm.h \ util.c util.h util-o.c util-o.h pin.c pin.h local_submit_LDADD = $(NSS_LIBS) $(OPENSSL_LIBS) $(TALLOC_LIBS) $(UUID_LIBS) \