Foreman > docker host connection via https

Hi,

Could you give me some advice about configuration of Foreman host that
allows connect to docker host machine via tls?

I just configured docker hosts to accept only secure connection and I can
connect from Foreman with curl just specifing cert/key/ca but when I trying
to connect with Foreman, I am an error:

Unable to save
Unable to verify certificate, please set Excon.defaults[:ssl_ca_path] = path_to_certs, ENV['SSL_CERT_DIR'] = path_to_certs, Excon.defaults[:ssl_ca_file] = path_to_file, ENV['SSL_CERT_FILE'] = path_to_file, Excon.defaults[:ssl_verify_callback] = callback (see OpenSSL::SSL::SSLContext#verify_callback), or
Excon.defaults[:ssl_verify_peer] = false (less secure).