diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2015-07-02 03:31:31 -0400 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2015-07-08 00:25:46 +0200 |
commit | bed6f402e2d5587c35ff7e84ba3b80026c6db73d (patch) | |
tree | fe20caae489a567855f0dbe56605f85a80a1d8a5 /ipaserver/plugins/dogtag.py | |
parent | 62e8002bc43ddd890c3db35a123cb7daf35e3121 (diff) | |
download | freeipa-bed6f402e2d5587c35ff7e84ba3b80026c6db73d.tar.gz freeipa-bed6f402e2d5587c35ff7e84ba3b80026c6db73d.tar.xz freeipa-bed6f402e2d5587c35ff7e84ba3b80026c6db73d.zip |
certprofile: add option to export profile config
Add the `--out=FILENAME' option to `certprofile-show'. When given,
it exports the profile configuration from Dogtag and writes it to
the named file.
Fixes: https://fedorahosted.org/freeipa/ticket/5091
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver/plugins/dogtag.py')
-rw-r--r-- | ipaserver/plugins/dogtag.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ipaserver/plugins/dogtag.py b/ipaserver/plugins/dogtag.py index 3dc8f5c93..eb2a6ae84 100644 --- a/ipaserver/plugins/dogtag.py +++ b/ipaserver/plugins/dogtag.py @@ -2081,6 +2081,14 @@ class ra_certprofile(RestClient): body=profile_data ) + def read_profile(self, profile_id): + """ + Read the profile configuration from Dogtag + """ + status, status_text, resp_headers, resp_body = self._ssldo( + 'GET', profile_id + '/raw') + return resp_body + def enable_profile(self, profile_id): """ Enable the profile in Dogtag |