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.

Bug 1387375

Summary: Subscription-manager fails connecting to Subscription Asset Manager with intermediate Certificate Authority.
Product: Red Hat Enterprise Linux 7 Reporter: Konstantin Trufanov <ktrufano>
Component: subscription-managerAssignee: Alex Wood <awood>
Status: CLOSED WONTFIX QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: high    
Version: 7.2CC: bcourt, csnyder, khowell, redakkan, skallesh, snelsond, snemeth, vrjain
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-19 20:50:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1420851    
Attachments:
Description Flags
rhsm.log from consumer server none

Description Konstantin Trufanov 2016-10-20 17:38:35 UTC
Created attachment 1212587 [details]
rhsm.log from consumer server

Description of problem:

Subscribing system with single custom CA configured on katello works fine but fails if there is more then one cerificate in a CA chain 


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

subscription-manager: 1.15
SAM 1.4


How reproducible:


Steps to Reproduce:

1. Change certificate for katello with more then one certificate in Authority chain
2. Create an rpm with root chain certificate and consumer certificate signed by the same authority as katello certificate.
3. Install rpm on consumer server.
4. Try to subscribe, get error Unable to verify server's identity: tlsv1 alert unknown ca

Actual results:

System register with error and is not able to get any actions from SAM


Expected results:

System subscribe without any error and can use repos from SAM.

Additional info:

I assume that it is not a katello bug because curl and openssl s_client connects to the SAM server without any errors

Please take a look at case 01713149 to see what action was taken in workaround.

Comment 2 Chris Snyder 2016-10-24 14:19:52 UTC
Have you tried setting the 'ssl_verify_depth' to a higher value in /etc/rhsm/rhsm.conf?

Comment 3 Konstantin Trufanov 2016-10-24 14:28:06 UTC
Yes, i tried it - doesn't help.

Comment 4 Alex Wood 2016-10-27 14:32:30 UTC
I'd like a little more information from the customer on this.  Specifically:

1. A tarball of the contents of /etc/rhsm on the client that is unable to subscribe successfully.

2. The openssl s_client command used to test and the entire output of the command.

3. The output of `openssl s_client -connect HOSTNAME:8443` run from the client (with an appropriate value for HOSTNAME).

4. The output of `openssl s_client -connect HOSTNAME:8443 -CAfile /etc/rhsm/ca/CA_FILE` run from the client (with appropriate values for HOSTNAME and CA_FILE).

Comment 9 Kevin Howell 2017-07-19 20:50:30 UTC
There is a workaround involving importing the Katello server certificate into Tomcat. However, we won't officially support this.

With the release of Satellite 5.8 we are deprecating the support of Subscription Asset Manager. The release notes for 5.8 can be found at https://access.redhat.com/documentation/en-us/red_hat_satellite/5.8/pdf/release_notes/Red_Hat_Satellite-5.8-Release_Notes-en-US.pdf.

I am therefore closing out this bug as WONTFIX. If you believe this to be an error, please feel free tor each out to either Rich Jerrido or Bryan Kearney. Thank you!