CA not trusted when running a job, tlsv1 alert unknown ca

Problem:
This is the ssh remote execution plugin trying to run a job, but I don’t know what is trying to contact and the cert is not trusted.

/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2023-02-22T13:43:38 67102e1d [E] <OpenSSL::SSL::SSLError> SSL_connect returned=1 errno=0 state=error: tlsv1 alert unknown ca
	/opt/rh/rh-ruby27/root/usr/share/ruby/net/protocol.rb:44:in `connect_nonblock'
	/opt/rh/rh-ruby27/root/usr/share/ruby/net/protocol.rb:44:in `ssl_socket_connect'
	/opt/rh/rh-ruby27/root/usr/share/ruby/net/http.rb:1009:in `connect'
	/opt/rh/rh-ruby27/root/usr/share/ruby/net/http.rb:943:in `do_start'
	/opt/rh/rh-ruby27/root/usr/share/ruby/net/http.rb:932:in `start'
	/opt/rh/rh-ruby27/root/usr/share/ruby/net/http.rb:1483:in `request'
	/usr/share/foreman-proxy/lib/proxy/request.rb:48:in `send_request'
	/opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow-0.7.0/lib/smart_proxy_dynflow/callback.rb:13:in `callback'
	/opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow-0.7.0/lib/smart_proxy_dynflow/callback.rb:7:in `send_to_foreman_tasks'
	/opt/theforeman/tfm/root/usr/share/gems/gems/smart_proxy_dynflow-0.7.0/lib/smart_proxy_dynflow/callback.rb:28:in `run'

Expected outcome:
To run the job

Foreman and Proxy versions:
3.2

Foreman and Proxy plugin versions:
0.7

Distribution and version:
CentOS 7

Did you ever figure out this issue since I see no one replied to your post? I’m running into similar issue when discovery service tries to register host via proxy.

not really…