]> git.proxmox.com Git - pve-storage.git/commitdiff
nexenta: disable ssl_opt verify_hostname
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 24 May 2013 12:53:40 +0000 (14:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 24 May 2013 12:53:40 +0000 (14:53 +0200)
Else we are unable to connect to the server when using ssl.

PVE/Storage/NexentaPlugin.pm

index 4c0e14a075afa1cb2732fbc9c43dc2ea536d46be..3422b0238cc5aef8ba19b5bf8170e6523a074ce1 100644 (file)
@@ -28,7 +28,7 @@ sub nexenta_request {
     my $token = encode_base64("$scfg->{login}:$scfg->{password}");
     $req->header(Authorization => "Basic $token");
 
-    my $ua = LWP::UserAgent->new; # You might want some options here
+    my $ua = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 });
     my $res = $ua->request($req);
     die $res->content if !$res->is_success;