#398 Move default location for client certificate database
Closed: Fixed None Opened 11 years ago by edewata.

Currently the client certificate database will be created in /tmp by default. If there's a problem or a mistake when configuring the security of the database, it could be left exposed to other users.

It would be better to create the database in the home directory of the user executing pkispawn, for example ~/.pki/certs/<instance>. That way the database is automatically protected by the home directory.


Committed to 'master':

  • cfcd0157084daa5a40d91b4ab9b75eadd4133c08

Per request, made the following code changes to 'pki/base/silent/templates/pki_silent.template':

diff --git a/base/silent/templates/pki_silent.template b/base/silent/templates/p
index 27e4ae7..10b95ce 100755
--- a/base/silent/templates/pki_silent.template
+++ b/base/silent/templates/pki_silent.template
@@ -54,6 +54,10 @@ if   [ "${MY_UID}"  != "${ROOTUID}" ] &&
        exit 255
 fi

+if  [ -z "${HOME}" ]; then
+       printf "ERROR:  The 'HOME' environment variable must be set!\n"
+       exit 255
+fi


 ##############################################################################
@@ -78,7 +82,7 @@ fi

 ##  PKI Silent Security Database Variables
 ##  (e. g. - PKI Silent "browser" database)
-pki_silent_security_database_repository="/tmp"
+pki_silent_security_database_repository="${HOME}/.pki/certs"
 pki_silent_security_database_password=

 ##  PKI Security Domain Variables

Committed to 'master':

  • af5841362e9a464def4022de242ae14a3879eff6

Per request, removed 'pki/base/silent/templates/subca_silent.template'.

Committed to 'master':

  • 6a1cf64466076d13a7ffbb76026d9eaed6a56505

Metadata Update from @edewata:
- Issue assigned to mharmsen
- Issue set to the milestone: 10.0.0-0.X.rc1

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/969

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Log in to comment on this ticket.

Metadata