Bug #16903
closed'katello-certs-check' should check for new line character at the end of certificates
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1375072
I have few issues where customer generated custom certificate and installed on the Satellite but when he is trying to install "katello-ca-consumer-latest.noarch.rpm"(generated with customer certificate) package on the client getting below error:
----
[root@meltser-76 ~]# rpm Uvh http://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
Retrieving http://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:katello-ca-consumer-satellite.example################################# [100%]
/usr/bin/katello-rhsm-consumer: line 260: warning: here-document at line 102 delimited by end-of-file (wanted `EOM')
warning: %post(katello-ca-consumer-satellite.example.com-1.0-1.noarch) scriptlet failed, exit status 1
---
This is due to that custom certificate(one for all of them) not having a return/newline on the end of one of his certificates. When you cat the cert, it will appear like this:
-----END CERTIFICATE-----[root@sat62 ~]#
Entering a new line at the end of the certificate and re-run the satellite-installer helps to resolve the issue.
To eliminate the issue from the product, can we have the feature to detect this issue during "katello-certs-check" itself on the Satellite and provide proper error message so that do not run into this issue after generating Satellite certificates.
Updated by Eric Helms almost 8 years ago
- Subject changed from 'katello-certs-check' should check for new line character at the end of certificates to 'katello-certs-check' should check for new line character at the end of certificates
- Priority changed from High to Normal
- Translation missing: en.field_release set to 188
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release changed from 188 to 114
Updated by Jonathon Turel about 4 years ago
- Target version changed from Katello Backlog to Katello Recycle Bin