theforeman/foreman · error · Foreman::WrappedException
Unable to read SSL certification or key for proxy communicat
Error message
Unable to read SSL certification or key for proxy communication, check settings for ssl_certificate, ssl_ca_file and ssl_priv_key and ensure they are readable by the foreman user.
What it means
Error "Unable to read SSL certification or key for proxy communication, check settings for ssl_certificate, ssl_ca_file and ssl_priv_key and ensure they are readable by the foreman user." thrown in theforeman/foreman.
Source
Thrown at app/services/proxy_api/resource.rb:148
def session_id
::Logging.mdc['session'] || SecureRandom.uuid
end
def ssl_auth_params
cert = Setting[:ssl_certificate]
ca_cert = Setting[:ssl_ca_file]
hostprivkey = Setting[:ssl_priv_key]
{
:ssl_client_cert => OpenSSL::X509::Certificate.new(File.read(cert)),
:ssl_client_key => OpenSSL::PKey.read(File.read(hostprivkey)),
:ssl_ca_file => ca_cert,
:verify_ssl => OpenSSL::SSL::VERIFY_PEER,
}
rescue StandardError => exception
msg = N_("Unable to read SSL certification or key for proxy communication, check settings for ssl_certificate, ssl_ca_file and ssl_priv_key and ensure they are readable by the foreman user.")
Foreman::Logging.exception(msg, exception)
raise Foreman::WrappedException.new(exception, msg)
end
end
class RestClientLogger
def initialize(logger)
@logger = logger
end
def <<(msg)
@logger.debug(msg.chomp)
end
end
end
View on GitHub (pinned to 6b05625475)
When it happens
Trigger: Thrown at app/services/proxy_api/resource.rb:148 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- SSL/TLS and certificate errors — how TLS handshakes and certificate validation fail.
AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23).
Data as JSON: /api/errors/49d0d6012bea7d62.
Report an issue: GitHub.