Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
Create cert_store if it's not created before validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aljesusg committed Nov 7, 2017
1 parent d7dd222 commit c8ff15b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/manageiq/providers/hawkular/middleware_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def self.raw_connect(host, port, username, password, security_protocol, cert_sto
options = {
:tenant => 'hawkular',
:verify_ssl => verify_ssl_mode(security_protocol),
:ssl_cert_store => cert_store
:ssl_cert_store => if cert_store.kind_of?(String)
Endpoint.new(:certificate_authority => cert_store).ssl_cert_store
else
cert_store
end
}
::Hawkular::Client.new(:entrypoint => entrypoint(host, port, security_protocol),
:credentials => credentials, :options => options)
Expand Down

0 comments on commit c8ff15b

Please sign in to comment.