RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1657039 - Getting NullPointerException while executing ca-profile-show for 'caTokenUserDelegateSigningKeyEnrollment' & 'caTokenUserDelegateAuthKeyEnrollment'
Summary: Getting NullPointerException while executing ca-profile-show for 'caTokenUser...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pki-core
Version: 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: RHCS Maintainers
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-06 22:11 UTC by Pritam Singh
Modified: 2021-02-01 14:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-01 07:31:01 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pritam Singh 2018-12-06 22:11:08 UTC
Description of problem:

Getting NullPointerException error while executing pki ca-profile-show for the following existing profiles:
caTokenUserDelegateSigningKeyEnrollment
caTokenUserDelegateAuthKeyEnrollment, as ca-profile-show used to display a specified profile in the database so it should return a preety print of profile data instead showing exceptional error.

Version-Release number of selected component (if applicable):

PKI Command-Line Interface 10.6.8-1.module+el8+2277+f150bc67

How reproducible:

Always

Steps to Reproduce:
1. To find existence of above profiles:

[root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 20080 -n "PKI CA Administrator for Example.Org" ca-profile-find --size 90
 
2. Execute the following query to reproduce the above issue:

2.1 [root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 20080 -n "PKI CA Administrator for Example.Org" ca-profile-show caTokenUserDelegateAuthKeyEnrollment

2.2 [root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 20080 -n "PKI CA Administrator for Example.Org" ca-profile-show caTokenUserDelegateSigningKeyEnrollment

3. Above query pki query will return the nullpointerexception error instead showing preety print of the mentioned profiles. 

Actual results:

Seeing NullpointerException error for above profiles.

Expected results:

It should return preety print of the existing mentioned profiles instead showing NullPointerException error.

Additional info:

The above pki query working perfectly with other profiles like caUserCert, caDualCert etc but seeing issue with above profiles.

Pastebin: http://pastebin.test.redhat.com/680253

Comment 3 RHEL Program Management 2021-02-01 07:31:01 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 4 Alex Scheel 2021-02-01 14:23:42 UTC
I was unable to reproduce this with either profile. 

[root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 18443 -n "PKI Administrator for example.com" ca-profile-show caTokenUserDelegateSigningKeyEnrollment
-------------------------------------------------
Profile "caTokenUserDelegateSigningKeyEnrollment"
-------------------------------------------------
  Profile ID: caTokenUserDelegateSigningKeyEnrollment
  Name: Token User Delegate Signing Certificate Enrollment
  Description: This profile is for enrolling Token User Delegate Signing key

  Name: Token Key Certificate Request Input
  Class: nsNKeyCertReqInputImpl

    Attribute Name: screenname
    Attribute Description: Token Key User ID
    Attribute Syntax: string

    Attribute Name: publickey
    Attribute Description: Token Key User Public Key
    Attribute Syntax: string

  Name: Subject Name
  Class: subjectDNInputImpl

    Attribute Name: subject
    Attribute Description: Subject Name
    Attribute Syntax: string

  Name: Subject Alternative Name Extension Information
  Class: subjectAltNameExtInputImpl

    Attribute Name: req_san_type_0
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_0
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_1
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_1
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_2
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_2
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_3
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_3
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

  Name: Token Key Certificate Output
  Class: nsNKeyOutputImpl

    Attribute Name: der
    Attribute Description: DER Base 64 Encoded
    Attribute Syntax: der_b64
[root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 18443 -n "PKI Administrator for example.com" ca-profile-show caTokenUserDelegateAuthKeyEnrollment
----------------------------------------------
Profile "caTokenUserDelegateAuthKeyEnrollment"
----------------------------------------------
  Profile ID: caTokenUserDelegateAuthKeyEnrollment
  Name: Token User Delegate Authentication Certificate Enrollment
  Description: This profile is for enrolling Token User Delegate Authentication key

  Name: Token Key Certificate Request Input
  Class: nsNKeyCertReqInputImpl

    Attribute Name: screenname
    Attribute Description: Token Key User ID
    Attribute Syntax: string

    Attribute Name: publickey
    Attribute Description: Token Key User Public Key
    Attribute Syntax: string

  Name: Subject Name
  Class: subjectDNInputImpl

    Attribute Name: subject
    Attribute Description: Subject Name
    Attribute Syntax: string

  Name: Subject Alternative Name Extension Information
  Class: subjectAltNameExtInputImpl

    Attribute Name: req_san_type_0
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_0
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_1
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_1
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_2
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_2
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_3
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_3[root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 18443 -n "PKI Administrator for example.com" ca-profile-show caTokenUserDelegateSigningKeyEnrollment
-------------------------------------------------
Profile "caTokenUserDelegateSigningKeyEnrollment"
-------------------------------------------------
  Profile ID: caTokenUserDelegateSigningKeyEnrollment
  Name: Token User Delegate Signing Certificate Enrollment
  Description: This profile is for enrolling Token User Delegate Signing key

  Name: Token Key Certificate Request Input
  Class: nsNKeyCertReqInputImpl

    Attribute Name: screenname
    Attribute Description: Token Key User ID
    Attribute Syntax: string

    Attribute Name: publickey
    Attribute Description: Token Key User Public Key
    Attribute Syntax: string

  Name: Subject Name
  Class: subjectDNInputImpl

    Attribute Name: subject
    Attribute Description: Subject Name
    Attribute Syntax: string

  Name: Subject Alternative Name Extension Information
  Class: subjectAltNameExtInputImpl

    Attribute Name: req_san_type_0
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_0
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_1
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_1
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_2
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_2
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_3
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_3
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

  Name: Token Key Certificate Output
  Class: nsNKeyOutputImpl

    Attribute Name: der
    Attribute Description: DER Base 64 Encoded
    Attribute Syntax: der_b64
[root@pki1 ~]# pki -d /opt/pki/certdb/ -c SECret.123 -p 18443 -n "PKI Administrator for example.com" ca-profile-show caTokenUserDelegateAuthKeyEnrollment
----------------------------------------------
Profile "caTokenUserDelegateAuthKeyEnrollment"
----------------------------------------------
  Profile ID: caTokenUserDelegateAuthKeyEnrollment
  Name: Token User Delegate Authentication Certificate Enrollment
  Description: This profile is for enrolling Token User Delegate Authentication key

  Name: Token Key Certificate Request Input
  Class: nsNKeyCertReqInputImpl

    Attribute Name: screenname
    Attribute Description: Token Key User ID
    Attribute Syntax: string

    Attribute Name: publickey
    Attribute Description: Token Key User Public Key
    Attribute Syntax: string

  Name: Subject Name
  Class: subjectDNInputImpl

    Attribute Name: subject
    Attribute Description: Subject Name
    Attribute Syntax: string

  Name: Subject Alternative Name Extension Information
  Class: subjectAltNameExtInputImpl

    Attribute Name: req_san_type_0
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_0
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_1
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_1
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_2
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_2
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

    Attribute Name: req_san_type_3
    Attribute Description: Request Subject Alternative Name Extension Type
    Attribute Syntax: string

    Attribute Name: req_san_pattern_3
    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

  Name: Token Key Certificate Output
  Class: nsNKeyOutputImpl

    Attribute Name: der
    Attribute Description: DER Base 64 Encoded
    Attribute Syntax: der_b64

    Attribute Description: Request Subject Alternative Name Extension Pattern
    Attribute Syntax: string

  Name: Token Key Certificate Output
  Class: nsNKeyOutputImpl

    Attribute Name: der
    Attribute Description: DER Base 64 Encoded
    Attribute Syntax: der_b64


Note You need to log in before you can comment on or make changes to this bug.