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 Dec 5, 2017
1 parent d7dd222 commit 066af83
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/manageiq/providers/hawkular/middleware_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ def self.raw_connect(host, port, username, password, security_protocol, cert_sto
:username => username,
:password => password
}

if cert_store.kind_of?(String)
cert_store = Endpoint.new(:certificate_authority => cert_store).ssl_cert_store
end

options = {
:tenant => 'hawkular',
:verify_ssl => verify_ssl_mode(security_protocol),
Expand Down

0 comments on commit 066af83

Please sign in to comment.