Skip to content
This repository has been 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 6, 2017
1 parent d7dd222 commit 12c24bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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,10 @@ 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 12c24bd

Please sign in to comment.