Match Common Name attribute in Subject

ipa cert_find command has an option called --subject.
The option is documented as --subject=STR Subject.
It is expected that a --subject option searches by X.509 subject field but it does not do so.
It searches for CN not cert subject. Hence changing content of --subject help option.

Resolves: https://pagure.io/freeipa/issue/7322
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
amitkuma authored and Rob Crittenden committed 2018-06-05 14:01:11 -04:00
1 parent 3927b0e7b1
commit 326fd6a70d
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ class cert_find(Command):
parameters.Str(
'subject',
required=False,
label=_(u'Subject'),
label=_(u'Match cn attribute in subject'),
),
parameters.Int(
'revocation_reason',
+1 -1
View File
@@ -132,7 +132,7 @@ class cert_find(Command):
parameters.Str(
'subject',
required=False,
label=_(u'Subject'),
label=_(u'Match cn attribute in subject'),
),
parameters.Int(
'revocation_reason',
+1 -1
View File
@@ -132,7 +132,7 @@ class cert_find(Command):
parameters.Str(
'subject',
required=False,
label=_(u'Subject'),
label=_(u'Match cn attribute in subject'),
),
parameters.Int(
'revocation_reason',
+1 -1
View File
@@ -1307,7 +1307,7 @@ class cert_find(Search, CertMethod):
takes_options = (
Str('subject?',
label=_('Subject'),
doc=_('Subject'),
doc=_('Match cn attribute in subject'),
autofill=False,
),
Int('min_serial_number?',