summaryrefslogtreecommitdiffstats
path: root/ipaclient/csrgen/rules/dataEmail.json
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-03-02 16:09:53 +0100
committerDavid Kupka <dkupka@redhat.com>2017-03-08 15:59:26 +0100
commit80be18162921268be9c8981495c9e8a4de0c85cd (patch)
tree3bd5245a257df520167976a3a83be89c5ea6bb54 /ipaclient/csrgen/rules/dataEmail.json
parentf8d7e37a091c1df4c989b80b8d19e12ab35533c8 (diff)
downloadfreeipa-80be18162921268be9c8981495c9e8a4de0c85cd.tar.gz
freeipa-80be18162921268be9c8981495c9e8a4de0c85cd.tar.xz
freeipa-80be18162921268be9c8981495c9e8a4de0c85cd.zip
Move csrgen templates into ipaclient package
csrgen broke packaging of ipaclient for PyPI. All csrgen related resources are now package data of ipaclient package. Package data is accessed with Jinja's PackageLoader() or through pkg_resources. https://pagure.io/freeipa/issue/6714 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Ben Lipton <blipton@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaclient/csrgen/rules/dataEmail.json')
-rw-r--r--ipaclient/csrgen/rules/dataEmail.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipaclient/csrgen/rules/dataEmail.json b/ipaclient/csrgen/rules/dataEmail.json
new file mode 100644
index 000000000..2eae9fb25
--- /dev/null
+++ b/ipaclient/csrgen/rules/dataEmail.json
@@ -0,0 +1,15 @@
+{
+ "rules": [
+ {
+ "helper": "openssl",
+ "template": "email = {{subject.mail.0}}"
+ },
+ {
+ "helper": "certutil",
+ "template": "email:{{subject.mail.0|quote}}"
+ }
+ ],
+ "options": {
+ "data_source": "subject.mail.0"
+ }
+}