Skip to content

Commit

Permalink
add disable ssl verification option
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzotomasini committed May 3, 2018
1 parent 1dd9a58 commit 57f4355
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public OSClient authenticate(OpenstackVimInstance vimInstance) throws VimDriverE
if (vimInstance.getOpenstackSslCertificate() != null
&& !vimInstance.getOpenstackSslCertificate().equals("")) {
log.debug("Certificate is provided in VIM " + vimInstance.getName());
InputStream certificateInputStream = null;
InputStream certificateInputStream;
try {
certificateInputStream =
new ByteArrayInputStream(vimInstance.getOpenstackSslCertificate().getBytes());
Expand Down Expand Up @@ -171,6 +171,9 @@ public OSClient authenticate(OpenstackVimInstance vimInstance) throws VimDriverE
}
}

if (Boolean.parseBoolean(properties.getProperty("disable-ssl-verification", "true")))
cfg.withSSLVerificationDisabled();

try {
if (isV3API(vimInstance)) {

Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/plugin.conf.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ connection-timeout=10000
deallocate-floating-ip=true

# period of time between consequent checks for VM active
wait-for-vm=5000
wait-for-vm=5000

# ignore ssl verification
disable-ssl-verification = true

0 comments on commit 57f4355

Please sign in to comment.