mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Display serial number as HEX (DECIMAL) when showing certificates.
https://fedorahosted.org/freeipa/ticket/1991
This commit is contained in:
@@ -232,37 +232,32 @@ class cert_request(VirtualCommand):
|
||||
)
|
||||
|
||||
has_output_params = (
|
||||
Str('certificate?',
|
||||
Str('certificate',
|
||||
label=_('Certificate'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('subject?',
|
||||
Str('subject',
|
||||
label=_('Subject'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('issuer?',
|
||||
Str('issuer',
|
||||
label=_('Issuer'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('valid_not_before?',
|
||||
Str('valid_not_before',
|
||||
label=_('Not Before'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('valid_not_after?',
|
||||
Str('valid_not_after',
|
||||
label=_('Not After'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('md5_fingerprint?',
|
||||
Str('md5_fingerprint',
|
||||
label=_('Fingerprint (MD5)'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('sha1_fingerprint?',
|
||||
Str('sha1_fingerprint',
|
||||
label=_('Fingerprint (SHA1)'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('serial_number?',
|
||||
Str('serial_number',
|
||||
label=_('Serial number'),
|
||||
flags=['no_create', 'no_update', 'no_search'],
|
||||
),
|
||||
Str('serial_number_hex',
|
||||
label=_('Serial number (hex)'),
|
||||
),
|
||||
)
|
||||
|
||||
@@ -456,9 +451,12 @@ class cert_show(VirtualCommand):
|
||||
Str('sha1_fingerprint',
|
||||
label=_('Fingerprint (SHA1)'),
|
||||
),
|
||||
Str('revocation_reason?',
|
||||
Str('revocation_reason',
|
||||
label=_('Revocation reason'),
|
||||
),
|
||||
Str('serial_number_hex',
|
||||
label=_('Serial number (hex)'),
|
||||
),
|
||||
)
|
||||
|
||||
takes_options = (
|
||||
@@ -565,10 +563,10 @@ class cert_remove_hold(VirtualCommand):
|
||||
takes_args = _serial_number
|
||||
|
||||
has_output_params = (
|
||||
Flag('unrevoked?',
|
||||
Flag('unrevoked',
|
||||
label=_('Unrevoked'),
|
||||
),
|
||||
Str('error_string?',
|
||||
Str('error_string',
|
||||
label=_('Error'),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user