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 2239494 - foreman-proxy does not send full certificate chain
Summary: foreman-proxy does not send full certificate chain
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.13.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
: 2251075 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-18 16:36 UTC by Joniel Pasqualetto
Modified: 2024-02-09 00:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman smart-proxy pull 874 0 None open Fixes #36755 - Send full certificate chain to clients 2023-09-18 18:03:52 UTC
Red Hat Issue Tracker SAT-20173 0 None None None 2023-09-18 16:37:44 UTC

Description Joniel Pasqualetto 2023-09-18 16:36:48 UTC
Description of problem:

When establishing a SSL connection against foreman-proxy configured with custom certs which use a bundle with root + intermediate certificates, the full certificate chain is not presented to the client.

This requires that the client establishing the connection trust all the intermediate CAs of the bundle for it to work. If the full certificate chain is present, the client only needs to trust the ROOT CA for the connection to be verified.

This is important for customer using custom certs and doing registration through capsules, since a registration command goes to port 9090. 


Apache, for example, do offer the full certificate chain. 


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


How reproducible:
Always

Steps to Reproduce:
1. Configure your Satellite/Capsule to use custom certs and provide a bundle with more than one certificate
2. try establishing a connection the foreman-proxy and check the certificates sent by the server:

~~~
echo |openssl s_client -connect $(hostname -f):9090 -showcerts 2> /dev/null |awk -v cmd='openssl x509 -noout -subject ' ' /BEGIN/{close(cmd)};{print | cmd}' 2> /dev/null
~~~

You will see only the Server certificate

Actual results:

Only server certificate is present, no CA chain.

Expected results:

Full certificate chain present

Additional info:

I do have a patch to smart-proxy that appears to work on my lab. Will send it as a PR upstream for evaluation.

Comment 3 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 6 Waldirio M Pinheiro 2023-11-22 18:36:21 UTC
*** Bug 2251075 has been marked as a duplicate of this bug. ***


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