summaryrefslogtreecommitdiffstats
path: root/ipaplatform
diff options
context:
space:
mode:
authorBen Lipton <blipton@redhat.com>2016-07-05 14:19:35 -0400
committerJan Cholasta <jcholast@redhat.com>2017-01-31 10:20:28 +0100
commit10ef5947860f5098182b1f95c08c1158e2da15f9 (patch)
tree360f7bb40f2eab2dcc2a1fa2c8460643c77524ec /ipaplatform
parent87400cdec1054971f50f90a0c63f18ab045f3833 (diff)
downloadfreeipa-10ef5947860f5098182b1f95c08c1158e2da15f9.tar.gz
freeipa-10ef5947860f5098182b1f95c08c1158e2da15f9.tar.xz
freeipa-10ef5947860f5098182b1f95c08c1158e2da15f9.zip
csrgen: Add code to generate scripts that generate CSRs
Adds a library that uses jinja2 to format a script that, when run, will build a CSR. Also adds a CLI command, 'cert-get-requestdata', that uses this library and builds the script for a given principal. The rules are read from json files in /usr/share/ipa/csr, but the rule provider is a separate class so that it can be replaced easily. https://fedorahosted.org/freeipa/ticket/4899 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaplatform')
-rw-r--r--ipaplatform/base/paths.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipaplatform/base/paths.py b/ipaplatform/base/paths.py
index 0ba64efdb..423478917 100644
--- a/ipaplatform/base/paths.py
+++ b/ipaplatform/base/paths.py
@@ -233,6 +233,7 @@ class BasePathNamespace(object):
SCHEMA_COMPAT_ULDIF = "/usr/share/ipa/schema_compat.uldif"
IPA_JS_PLUGINS_DIR = "/usr/share/ipa/ui/js/plugins"
UPDATES_DIR = "/usr/share/ipa/updates/"
+ CSR_DATA_DIR = "/usr/share/ipa/csrgen"
DICT_WORDS = "/usr/share/dict/words"
CACHE_IPA_SESSIONS = "/var/cache/ipa/sessions"
VAR_KERBEROS_KRB5KDC_DIR = "/var/kerberos/krb5kdc/"