When trying to update the self signed Cert with CA issued one, katello-installer gives error on satellite 6.1
Issue
- When trying to update the self signed Cert with CA issued one, katello-installer gives error
- We have this error when we try to update the self-signed cert with our CA generated cert.
# katello-installer --certs-server-cert /root/sat_cert/abcd.crt --certs-server-cert-req /root/sat_cert/abcd.csr --certs-server-key /root/sat_cert/abcd.key --certs-server-ca-cert /root/sat_cert/ABC12.cer --certs-update-server --certs-update-server-ca
Marking certificate /root/ssl-build/abcd.xyz.com/abcd.xyz.com-apache for update
Marking certificate /root/ssl-build/abcd.xyz.com/abcd.xyz.com-foreman-proxy for update
Marking certificate /root/ssl-build/katello-server-ca for update
Command '/usr/share/katello-installer/bin/katello-certs-check -c "/root/sat_cert/abcd.crt" -r "/root/sat_cert/abcd.csr" -k "/root/sat_cert/abcd.key" -b "/root/sat_cert/ABC12.cer"' exited with 4:
Validating the certificate subject= /L=City/ST=State/C=US/O=Company/OU=Department/CN=abcd.xyz.com
Check private key matches the certificate: [OK]
Check ca bundle verifies the cert file: [FAIL]
The /root/sat_cert/ABC12.cer does not verify the /root/sat_cert/abcd.crt
/root/sat_cert/abcd.crt: C = US, O = Company, OU = Company Service Association, CN = Company Information Delivery Internal CA error 2 at 1 depth lookup:unable to get issuer certificate
/usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hook_context.rb:71:in `exit': private method `exit' called for #<Kafo::KafoConfigure:0x00000002f29188> (NoMethodError)
from /usr/share/katello-installer/hooks/pre/20-certs_update.rb:9:in `error'
from /usr/share/katello-installer/hooks/pre/20-certs_update.rb:62:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hooking.rb:32:in `instance_eval'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hooking.rb:32:in `block (4 levels) in load'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hook_context.rb:13:in `instance_exec'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hook_context.rb:13:in `execute'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hooking.rb:49:in `block in execute'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hooking.rb:47:in `each'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/hooking.rb:47:in `execute'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/kafo_configure.rb:301:in `run_installation'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/kafo_configure.rb:109:in `execute'
from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
from /usr/share/gems/gems/kafo-0.6.5.9/lib/kafo/kafo_configure.rb:116:in `run'
from /sbin/katello-installer:46:in `<main>'
Environment
- Red Hat Satellite 6.1.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
