Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1883594 - Capsule-certs-generate Fails to Create New Data if Capsule Directory Exists in SSL-BUILD
Summary: Capsule-certs-generate Fails to Create New Data if Capsule Directory Exists i...
Keywords:
Status: CLOSED DUPLICATE of bug 1857176
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Certificates
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Omkar Khatavkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-29 16:17 UTC by myoder
Modified: 2024-06-13 23:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-05 16:36:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description myoder 2020-09-29 16:17:37 UTC
Description of problem:

If the /root/ssl-build/<CAPSULE-FQDN>/ directory already exists on the Satellite server, running the capsule-certs-generate command for said Capsule, will not update that directory.  Likewise, the tar file provided from that command, that is to be scp'd to the Capsule server, is not updated either.  

Thus, if we try to update a Capsule's certificate, we cannot do so.  Satellite keeps generating stale data from the time before.  The only way to get Satellite to generate new data, is to manually remove the /root/ssl-build/<CAPSULE-FQDN>/ directory from the Satellite server.  Then run the capsule-certs-generate command with the new certs.


Version-Release number of selected component (if applicable):
Red Hat Satellite 6.7.2

How reproducible:
always

Steps to Reproduce (one way):
1. Before using custom certs on Satellite or Capsule, install them with the default self signed certificates.
2. Then, get custom certificate for both Satellite and Capsule server
3. Update Satellite server with custom certificate
4. Then run the capsule-certs-generate command on the new custom certificates for the Capsule server.
5. scp the tar file to capsule, and run the given satellite-installer command on the Capsule server.

Actual results:
Capsule server install fails, due to 500 error, because the Capsule is giving the Satellite a self-signed cert, when Satellite expects to be given the new custom certificate.

Expected results:
Capsule should be giving Satellite the new custom certificate.  However, the Capsule is never given a new certificate from the tar file that Satellite generated.  Instead, it is given the same old default certificate that was generated earlier.


Another way to reproduce, if we already have a custom certificate on our Capsule server:
1. Generate a new custom certificate (signed by same CA), but edit the Subject Alt Names, to include additional DNS or IPs
2. Give custom cert to Satellite and run capsule-certs-generate command.
3. scp tar file to capsule, and run the satellite-installer command given.

Actual results:
Capsule install succeeds, but we don't see the additional DNS or IPs in the Subject Alt Names.  Meaning, we just gave the Capsule the original custom certificate, and not the recently modified one.


Expected results:
We should see the extra DNS and IP we added to our custom certificate in the Subject Alt Names


Additional info:

Again, the only way I could rectify either situation, was to remove the /root/ssl-build/<CAPSULE-FQDN> directory, and re-run the capsule-certs-generate command.  I did several comparisons of the /root/ssl-build directory, as well as the tar file generated by Satellite.  Only when I cleared that directory, did I get the behavior I was expecting.

Comment 2 Eric Helms 2020-11-05 16:36:29 UTC

*** This bug has been marked as a duplicate of bug 1857176 ***


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