From a0de29d16d986c278a2686fc934ff08bdfd970fc Mon Sep 17 00:00:00 2001 From: "Eric D. Helms" Date: Fri, 28 Feb 2025 15:39:32 -0500 Subject: [PATCH] Use client certificates for Candlepin events Signed-off-by: Eric D. Helms --- lib/katello/engine.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/katello/engine.rb b/lib/katello/engine.rb index ff63afd6a56..eae3758909d 100644 --- a/lib/katello/engine.rb +++ b/lib/katello/engine.rb @@ -134,7 +134,11 @@ class Engine < ::Rails::Engine Katello::CandlepinEventListener.client_factory = proc do Katello::Messaging::Connection.create( connection_class: Katello::Messaging::StompConnection, - settings: SETTINGS[:katello][:candlepin_events] + settings: SETTINGS[:katello][:candlepin_events].deep_merge({ + :ssl_key_file => Setting[:ssl_priv_key], + :ssl_cert_file => Setting[:ssl_certificate], + :ssl_ca_file => Setting[:ssl_ca_file], + }) ) end