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 1357075 - pki client-cert-import --trust option does not apply the specified trust bits
Summary: pki client-cert-import --trust option does not apply the specified trust bits
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.3
Assignee: RHCS Maintainers
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-15 16:07 UTC by Roshni
Modified: 2020-10-04 21:12 UTC (History)
1 user (show)

Fixed In Version: pki-core-10.3.3-5.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 05:26:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dogtagpki pki issues 2532 0 None None None 2020-10-04 21:12:41 UTC
Red Hat Product Errata RHBA-2016:2396 0 normal SHIPPED_LIVE pki-core bug fix and enhancement update 2016-11-03 13:55:03 UTC

Description Roshni 2016-07-15 16:07:14 UTC
Description of problem:
pki client-cert-import --trust option does not apply the specified trust bits

Version-Release number of selected component (if applicable):
pki-ca-10.3.3-3.el7.noarch

How reproducible:
always

Steps to Reproduce:
pki -d /etc/dirsrv/slapd-topology-06-testingmaster -C /etc/dirsrv/slapd-topology-06-testingmaster/password.txt -h localhost -p 20080 client-cert-import "CA Certificate" --ca-cert /etc/dirsrv/slapd-topology-06-testingmaster/ca.crt --trust CT,CT,CT


Actual results:

-------------------------------------
Imported certificate "CA Certificate"
-------------------------------------
[root@pki1 ~]# certutil -L -d /etc/dirsrv/slapd-topology-06-testingmaster
 
Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI
 
CA Certificate                                               CT,c,

Expected results:

The imported certificate should have trust bits set to "CT,C,C"

Additional info:

Comment 2 Matthew Harmsen 2016-07-20 20:30:44 UTC
Upstream ticket:
https://fedorahosted.org/pki/ticket/2412

Comment 3 Matthew Harmsen 2016-08-03 00:42:09 UTC
[alee@localhost pki]$ git push origin master Counting objects: 50, done. Delta compression using up to 8 threads. Compressing objects: 100% (46/46), done. Writing objects: 100% (50/50), 8.80 KiB | 0 bytes/s, done. Total 50 (delta 39), reused 0 (delta 0) To ​ssh://vakwetu.org/git/pki.git

    cb72f5b..7cfff9f master -> master

* 7cfff9fb0c08d08f57d6229cb8a67d7c94f785aa

Comment 5 Roshni 2016-09-07 16:11:15 UTC
[root@auto-hv-02-guest02 certsdb]# rpm -qi pki-ca
Name        : pki-ca
Version     : 10.3.3
Release     : 8.el7
Architecture: noarch
Install Date: Wed 31 Aug 2016 02:28:11 PM EDT
Group       : System Environment/Daemons
Size        : 2430595
License     : GPLv2
Signature   : (none)
Source RPM  : pki-core-10.3.3-8.el7.src.rpm
Build Date  : Tue 30 Aug 2016 03:23:27 PM EDT
Build Host  : ppc-015.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://pki.fedoraproject.org/
Summary     : Certificate System - Certificate Authority

[root@auto-hv-02-guest02 certsdb]# pki -d . -c Secret123 -h localhost -p 8080 client-cert-import "CA Certificate" --ca-cert ca.pem --trust CT,CT,CT
-------------------------------------
Imported certificate "CA Certificate"
-------------------------------------
[root@auto-hv-02-guest02 certsdb]# certutil -L -d .

Certificate Nickname                                         Trust Attributes
                                                             SSL,S/MIME,JAR/XPI

PKI CA Administrator for Example.Org                         u,u,u
CA Certificate                                               CT,C,C

Comment 7 errata-xmlrpc 2016-11-04 05:26:10 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, 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://rhn.redhat.com/errata/RHBA-2016-2396.html


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