Bug 2122214

Summary: katello-certs-check propose not valid command for capsule
Product: Red Hat Satellite Reporter: Jan Jansky <jjansky>
Component: InstallationAssignee: Sayan Das <saydas>
Status: CLOSED ERRATA QA Contact: Omkar Khatavkar <okhatavk>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: ahumbe, pcreech, saydas
Target Milestone: 6.12.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-installer-3.3.0.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:35:34 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:

Description Jan Jansky 2022-08-29 14:00:01 UTC
Description of problem:
katello-certs-generate -t capsule return command proposal with trailing "\" for new Capsule


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


How reproducible: Always


Steps to Reproduce:
1.# katello-certs-check -t capsule -c <cert> -k <key>  -b <CA bundle>


Actual results:
...
  To use them inside a NEW $CAPSULE, run this command:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" \
                                   --certs-tar  "~/$CAPSULE-certs.tar" \
                                   --server-cert "/root/ssl/capsule/jjansat612-capsule_cert.crt" \
                                   --server-key "/root/ssl/capsule/jjansat612-capsule.pem" \
                                   --server-ca-cert "/root/ssl/capsule/CA.pem" \

...

Expected results:
...
  To use them inside a NEW $CAPSULE, run this command:

      capsule-certs-generate --foreman-proxy-fqdn "$CAPSULE" \
                                   --certs-tar  "~/$CAPSULE-certs.tar" \
                                   --server-cert "/root/ssl/capsule/jjansat612-capsule_cert.crt" \
                                   --server-key "/root/ssl/capsule/jjansat612-capsule.pem" \
                                   --server-ca-cert "/root/ssl/capsule/CA.pem"

...


Additional info:

Comment 2 Bryan Kearney 2022-09-02 04:05:33 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35453 has been resolved.

Comment 8 errata-xmlrpc 2022-11-16 13:35:34 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 (Important: Satellite 6.12 Release), 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://access.redhat.com/errata/RHSA-2022:8506