Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionStephen Wadeley
2015-11-05 20:56:23 UTC
Description of problem:
The command out from genkey is inconsistent. It tells you when & were the key has been written to but not the certificate.
Version-Release number of selected component (if applicable):
[root@localhost ~]# rpm -q crypto-utils
crypto-utils-2.4.1-42.el7.x86_64
Actual results:
[root@localhost ~]# genkey rhel7-1-ws
/usr/bin/keyutil -c makecert -g 512 -s "CN=rhel7-1-ws, C=CZ" -v 1 -a -z /etc/pki/tls/.rand.29792 -o /etc/pki/tls/certs/rhel7-1-ws.crt -k /etc/pki/tls/private/rhel7-1-ws.key
cmdstr: makecert
cmd_CreateNewCert
command: makecert
keysize = 512 bits
subject = CN=rhel7-1-ws, C=CZ
valid for 1 months
random seed from /etc/pki/tls/.rand.29792
output will be written to /etc/pki/tls/certs/rhel7-1-ws.crt
output key written to /etc/pki/tls/private/rhel7-1-ws.key
Generating key. This may take a few moments...
Made a key
Opened tmprequest for writing
/usr/bin/keyutil Copying the cert pointer
Created a certificate <-- BUT WHERE?
Wrote 486 bytes of encoded data to /etc/pki/tls/private/rhel7-1-ws.key
Wrote the key to:
/etc/pki/tls/private/rhel7-1-ws.key
Expected results:
[root@localhost ~]# genkey rhel7-1-ws
/usr/bin/keyutil -c makecert -g 512 -s "CN=rhel7-1-ws, C=CZ" -v 1 -a -z /etc/pki/tls/.rand.29792 -o /etc/pki/tls/certs/rhel7-1-ws.crt -k /etc/pki/tls/private/rhel7-1-ws.key
cmdstr: makecert
cmd_CreateNewCert
command: makecert
keysize = 512 bits
subject = CN=rhel7-1-ws, C=CZ
valid for 1 months
random seed from /etc/pki/tls/.rand.29792
output will be written to /etc/pki/tls/certs/rhel7-1-ws.crt
output key written to /etc/pki/tls/private/rhel7-1-ws.key
Generating key. This may take a few moments...
Made a key
Opened tmprequest for writing
/usr/bin/keyutil Copying the cert pointer
Created a certificate
Wrote the certificate to /etc/pki/tls/certs/rhel7-1-ws.crt <-- OR SIMILAR
Wrote the key to:
/etc/pki/tls/private/rhel7-1-ws.key
[root@localhost ~]#
Additional info: