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 1958277 - PKCS10Client EC Attribute Encoding
Summary: PKCS10Client EC Attribute Encoding
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Christina Fu
QA Contact: PKI QE
URL:
Whiteboard:
Depends On:
Blocks: 2004652 1978017 2041721 2041732
TreeView+ depends on / blocked
 
Reported: 2021-05-07 14:27 UTC by Chris Zinda
Modified: 2022-01-18 07:54 UTC (History)
5 users (show)

Fixed In Version: pki-core-10.5.18-16.el7_9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1978017 2041732 (view as bug list)
Environment:
Last Closed: 2021-08-24 19:44:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:3266 0 None None None 2021-08-24 19:44:33 UTC

Description Chris Zinda 2021-05-07 14:27:30 UTC
Description of problem:
Generating ECC request using PKCS10Client does not generate a request with the appropriate attribute encoding.

Version-Release number of selected component (if applicable):
RHCS 9 - latest version

How reproducible:
Very

Steps to Reproduce:
1. PKCS10Client -p password -d '.' -k true -o 'req.txt'  -a ec -c  nistp383 -n 'cn=UTF8String:aa,ou=BMPString:bb,o=cc'


Actual results:
PKCS10Client -p password -d '.' -k true -o 'req.txt'  -a ec -c  nistp383 -n 'cn=UTF8String:aa,ou=BMPString:bb,o=cc'

asn1parse:
  0 320: SEQUENCE {
  4 198:   SEQUENCE {
  7   1:     INTEGER 0
 10  71:     SEQUENCE {
 12  11:       SET {
 14   9:         SEQUENCE {
 16   3:           OBJECT IDENTIFIER organizationName (2 5 4 10)
 21   2:           UTF8String 'cc'
       :           }
       :         }
 25  27:       SET {
 27  25:         SEQUENCE {
 29   3:           OBJECT IDENTIFIER organizationalUnitName (2 5 4 11)
 34  18:           UTF8String 'PrintableString:bb'
       :           }
       :         }
 54  27:       SET {
 56  25:         SEQUENCE {
 58   3:           OBJECT IDENTIFIER commonName (2 5 4 3)
 63  18:           UTF8String 'PrintableString:aa'
       :           }
       :         }
       :       }
 83 118:     SEQUENCE {
 85  16:       SEQUENCE {
 87   7:         OBJECT IDENTIFIER ecPublicKey (1 2 840 10045 2 1)
 96   5:         OBJECT IDENTIFIER secp384r1 (1 3 132 0 34)
       :         }
103  98:       BIT STRING
       :         04 7A 62 4E 3E 3D 19 76 78 85 B3 25 D6 B0 8E 52
       :         D5 AB DD DF F9 59 52 8A D9 55 94 B1 C7 E4 99 D5
       :         3F DE 9B 33 92 35 92 ED B9 50 26 DC 00 98 C5 E8
       :         4F 86 AA E5 ED FA 1E E2 82 04 0A F8 4F B0 CF 17
       :         3A 4C 69 09 6C 2B 1A F3 8D 9B 6B 3A A4 B1 52 55
       :         0C FB DF 70 E6 02 9F FC DA BC 34 5B 83 8F C6 DF
       :         AA
       :       }
203   0:     [0]
       :       Error: Object has zero length.
       :     }
205  10:   SEQUENCE {
207   8:     OBJECT IDENTIFIER ecdsaWithSHA256 (1 2 840 10045 4 3 2)
       :     }
217 105:   BIT STRING, encapsulates {
220 102:     SEQUENCE {
222  49:       INTEGER
       :         00 C9 4F BD 0C 62 15 46 E6 12 B1 5C 00 F9 48 05
       :         4B D6 8F 8B 09 E4 46 29 60 8B 01 8A 93 4D 0D 32
       :         19 CD 08 38 63 42 CD 5A FD 62 B1 91 50 42 F9 23
       :         46
273  49:       INTEGER
       :         00 C8 B4 8A EC FB EB F3 2F 4B 39 48 26 BD 47 24
       :         A7 3E 7D C7 C5 4C 5F C6 2F ED 57 6B 53 1F 8F 78
       :         D2 B1 CC 01 8A C3 64 0D 2A 7B 0D E7 17 C1 5B F0
       :         77
       :       }
       :     }
       :   }

0 warnings, 1 error.


Notice the UTF8String instead of PrintableString for the attributes.


Expected results:
  0 656: SEQUENCE {
  4 376:   SEQUENCE {
  8   1:     INTEGER 0
 11  39:     SEQUENCE {
 13  11:       SET {
 15   9:         SEQUENCE {
 17   3:           OBJECT IDENTIFIER organizationName (2 5 4 10)
 22   2:           PrintableString 'cc'
       :           }
       :         }
 26  11:       SET {
 28   9:         SEQUENCE {
 30   3:           OBJECT IDENTIFIER organizationalUnitName (2 5 4 11)
 35   2:           PrintableString 'bb'
       :           }
       :         }
 39  11:       SET {
 41   9:         SEQUENCE {
 43   3:           OBJECT IDENTIFIER commonName (2 5 4 3)
 48   2:           PrintableString 'aa'
       :           }
       :         }
       :       }
 52 290:     SEQUENCE {
 56  13:       SEQUENCE {
 58   9:         OBJECT IDENTIFIER rsaEncryption (1 2 840 113549 1 1 1)
 69   0:         NULL
       :         }
 71 271:       BIT STRING, encapsulates {
 76 266:         SEQUENCE {
 80 257:           INTEGER
       :             00 C6 36 55 D5 FC 5A B5 61 FD BA 90 E6 09 0B 50
       :             D7 92 F7 69 56 E8 A7 64 83 06 25 D9 7A E7 B6 21
       :             E3 77 24 55 21 5B BA F8 5F 84 81 CF DB 45 08 06
       :             80 91 FE 16 1B 6A B3 35 3D B0 81 36 9B F3 8A 65
       :             9E 4A 2A D3 0F C0 FF 25 5E 6F 9D 09 0B 24 B5 62
       :             9E BC 13 69 4C 9B E7 C8 B0 D3 5E 73 32 E3 BB 6B
       :             42 E3 07 01 E8 4E AC 87 EA 74 41 A9 A7 87 F9 C7
       :             4D 43 68 A0 EE CE D4 BB 80 F6 BE DE F1 A0 A5 23
       :                     [ Another 129 bytes skipped ]
341   3:           INTEGER 65537
       :           }
       :         }
       :       }
346  36:     [0] {
348  34:       SEQUENCE {
350   8:         OBJECT IDENTIFIER '1 3 6 1 5 5 7 7 23'
360  22:         SET {
362  20:           OCTET STRING
       :             E6 69 C9 5F 2E FF A4 90 AE 73 E6 44 CC 3F 9E 1D
       :             96 77 9C 50
       :           }
       :         }
       :       }
       :     }
384  13:   SEQUENCE {
386   9:     OBJECT IDENTIFIER md5WithRSAEncryption (1 2 840 113549 1 1 4)
397   0:     NULL
       :     }
399 257:   BIT STRING
       :     2B 5B 9F D5 C0 A3 E7 B3 7B 4B 17 C0 A6 72 15 B6
       :     69 44 E9 57 62 53 5B 54 1E FD 6B 55 3C 7D 53 EF
       :     9B FC A6 FE E1 90 0A 55 2B 97 3D 70 47 CD BB 6D
       :     36 0B 6B 3D 2C D9 4C F1 3D 54 DF F3 0B 9D FD 3D
       :     9D 51 2D 1A 0E A6 9B 75 5F 9B B7 F5 BE C0 AC B8
       :     EF 0A C9 AA 84 28 B2 3E 68 CF 6B C4 08 6E E7 2C
       :     61 D6 B4 18 C5 07 BD 0F C4 7C 12 5C CA 69 F6 E2
       :     FA EE FC 80 B3 1B 0B 6D A2 62 8F 8B 7D 2D 0F 02
       :             [ Another 128 bytes skipped ]
       :   }

0 warnings, 0 errors.




Additional info:

Comment 20 errata-xmlrpc 2021-08-24 19:44:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (pki-core bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3266


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