Hammer -- SSL certificate verification failed

I’ve traced the file down to the /etc/hammer/cli.modules.d/foreman.yml file.

I don’t understand why foreman-installer is adding the ssl_ca_file here. There doesn’t seem to be an option to do anything else. Using ssl_ca_dirs=/etc/ssl/certs/ would also work, but there is no option for that.

$ cat /etc/hammer/cli.modules.d/foreman.yml

:foreman:
  # Enable/disable foreman commands
  :enable_module: true

  # Your foreman server address
  :host: 'https://foreman.example.org'

:ssl:
  :ssl_ca_file: '/etc/ssl/certs/intermediate-cert.pem'

If I comment out the ssl_ca_file it works:

$ cat /etc/hammer/cli.modules.d/foreman.yml
:foreman:
  # Enable/disable foreman commands
  :enable_module: true

  # Your foreman server address
  :host: 'https://foreman.example.org'

:ssl:
  #:ssl_ca_file: '/etc/ssl/certs/intermediate-cert.pem'
$ hammer ping
database: 
    Status:          ok
    Server Response: Duration: 0ms

$