Bug 1506235 - Missing line in 'katello-certs-check' output
Summary: Missing line in 'katello-certs-check' output
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Certificates
Version: 6.3.0
Hardware: other
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: Chris Roberts
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-25 13:16 UTC by csherrar
Modified: 2017-11-10 20:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-10 20:01:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description csherrar 2017-10-25 13:16:06 UTC
Description of problem:
Missing line in 'katello-certs-check' output. The missing line is `--certs-update-server`. This should be at line:36 of the output. If the current output is correct, then the `\` at the end of line:35 should be removed.

~~~
To use them inside a NEW $FOREMAN_PROXY, run this command:

foreman-proxy-certs-generate --foreman-proxy-fqdn "$FOREMAN_PROXY"\
--certs-tar  "~/$FOREMAN_PROXY-certs.tar"\
--server-cert "/root/sat_cert/satellite_cert.pem"\
--server-cert-req "/root/sat_cert/satellite_cert_csr.pem"\
--server-key "/root/sat_cert/satellite_cert_key.pem"\
--server-ca-cert "/root/sat_cert/ca_cert_bundle.pem"\
~~~

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

How reproducible:
Always

Steps to Reproduce:
1. Take Satellite 6.3 Beta
2. Execute katello-certs-check -c CERT_FILE -k KEY_FILE -r REQ_FILE -b CA_BUNDLE_FILE

Actual results:
~~~
To use them inside a NEW $FOREMAN_PROXY, run this command:

foreman-proxy-certs-generate --foreman-proxy-fqdn "$FOREMAN_PROXY"\
--certs-tar  "~/$FOREMAN_PROXY-certs.tar"\
--server-cert "/root/sat_cert/satellite_cert.pem"\
--server-cert-req "/root/sat_cert/satellite_cert_csr.pem"\
--server-key "/root/sat_cert/satellite_cert_key.pem"\
--server-ca-cert "/root/sat_cert/ca_cert_bundle.pem"\
~~~

Expected results:
~~~
To use them inside a NEW $FOREMAN_PROXY, run this command:

foreman-proxy-certs-generate --foreman-proxy-fqdn "$FOREMAN_PROXY"\
--certs-tar  "~/$FOREMAN_PROXY-certs.tar"\
--server-cert "/root/sat_cert/satellite_cert.pem"\
--server-cert-req "/root/sat_cert/satellite_cert_csr.pem"\
--server-key "/root/sat_cert/satellite_cert_key.pem"\
--server-ca-cert "/root/sat_cert/ca_cert_bundle.pem"\
--certs-update-server
~~~

Comment 1 Stephen Wadeley 2017-10-25 18:15:34 UTC
Hello

Eric Helms once said[1]

"....update the docs to exclude the quotes."

I think therefore the 'katello-certs-check' output should not suggest using them.

Thank you


[1] https://bugzilla.redhat.com/show_bug.cgi?id=1470653#c3

Comment 4 Chris Roberts 2017-11-10 20:01:03 UTC
Certs can only be updated if they already exist, this is working as intended. Closing out.


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