diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2016-06-29 13:57:53 +1000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-07-01 05:54:56 +0200 |
commit | ffb1f5b1f24f0de30529d50f8c8dfb9a896c149e (patch) | |
tree | c726f9f3a4fefc9e5fa87fd83f14f9295a732d66 /API.txt | |
parent | 235b19ba7f9807ecf10436d1a5b28518b4475a70 (diff) | |
download | freeipa-ffb1f5b1f24f0de30529d50f8c8dfb9a896c149e.tar.gz freeipa-ffb1f5b1f24f0de30529d50f8c8dfb9a896c149e.tar.xz freeipa-ffb1f5b1f24f0de30529d50f8c8dfb9a896c149e.zip |
Add --ca option to cert-revoke and cert-remove-hold
Implement the --ca option for cert-revoke and cert-remove-hold.
Defaults to the IPA CA. Raise NotFound if the cert with the given
serial was not issued by the nominated CA.
Also default the --ca option of cert-show to the IPA CA.
Add commentary to cert-status to explain why it does not use the
--ca option.
Fixes: https://fedorahosted.org/freeipa/ticket/5999
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'API.txt')
-rw-r--r-- | API.txt | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -760,8 +760,9 @@ output: ListOfEntries('result') output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: Output('truncated', type=[<type 'bool'>]) command: cert_remove_hold/1 -args: 1,1,1 +args: 1,2,1 arg: Int('serial_number') +option: Str('cacn?', autofill=True, cli_name='ca', default=u'ipa') option: Str('version?') output: Output('result') command: cert_request/1 @@ -769,7 +770,7 @@ args: 1,8,3 arg: Str('csr', cli_name='csr_file') option: Flag('add', autofill=True, default=False) option: Flag('all', autofill=True, cli_name='all', default=False) -option: Str('cacn?', cli_name='ca') +option: Str('cacn?', autofill=True, cli_name='ca', default=u'ipa') option: Str('principal') option: Str('profile_id?') option: Flag('raw', autofill=True, cli_name='raw', default=False) @@ -779,8 +780,9 @@ output: Entry('result') output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>]) output: PrimaryKey('value') command: cert_revoke/1 -args: 1,2,1 +args: 1,3,1 arg: Int('serial_number') +option: Str('cacn?', autofill=True, cli_name='ca', default=u'ipa') option: Int('revocation_reason', autofill=True, default=0) option: Str('version?') output: Output('result') @@ -788,7 +790,7 @@ command: cert_show/1 args: 1,6,3 arg: Int('serial_number') option: Flag('all', autofill=True, cli_name='all', default=False) -option: Str('cacn?', cli_name='ca') +option: Str('cacn?', autofill=True, cli_name='ca', default=u'ipa') option: Flag('no_members', autofill=True, default=False) option: Str('out?') option: Flag('raw', autofill=True, cli_name='raw', default=False) |