Loading ...
Sorry, an error occurred while loading the content.

certificate verify failed

Expand Messages
  • Rob Callahan
    Hi, I ve been trying all day to get SOAP::Lite to connect to a server that has a self-signed cert with no luck. Nor can I find any help on the web via Google
    Message 1 of 1 , Jun 13 6:21 PM
    • 0 Attachment
      Hi,

      I've been trying all day to get SOAP::Lite to connect to a server that has a self-signed cert with no luck. Nor can I find any help on the web via Google searches. Here's my code and the error returned:

      use SOAP::Lite +trace;

      my $username = "rcallaha";
      my $password = "pwd";
      my $url = "https://somehost.somedomain.com:8443/service";
      my $wsdl = $url . "/wsdl";


      my $service = SOAP::Lite
      ->service($wsdl)
      ->readable(1)
      ->proxy($url);

      my @headers = (
      SOAP::Header->name("username" => $username),
      SOAP::Header->name("password" => $password),
      );

      my $request = SOAP::Data->name("request" =>
      {
      });

      my $response = $service->call('listUsers' => $request, @headers);

      print("CSV: ", $response->result()->{"csv"});


      rcal2-macsl.local> ~/bin/ws_test.pl
      SOAP::Transport::new: ()
      SOAP::Serializer::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Lite::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Schema::new: ()
      Service description 'https://somehost.hostdomain.com:8443/service/wsdl' can't be loaded: 500 Can't connect to somehost.somedomain.com:8443 (certificate verify failed)
      SOAP::Lite::DESTROY: ()
      SOAP::Serializer::DESTROY: ()
      SOAP::Transport::DESTROY: ()
      SOAP::Deserializer::DESTROY: ()
      SOAP::Parser::DESTROY: ()
      SOAP::Schema::DESTROY: ()
      SOAP::Deserializer::DESTROY: ()
      SOAP::Parser::DESTROY: ()

      Any help would be greatly appreciated.

      Thanks,
      Rob
    Your message has been successfully submitted and would be delivered to recipients shortly.