It just dawned on me that all that $ENV{HTTPS_CERT_FILE} stuff is probably the root of your problems.

Check you Net::LDAPS documentation on passing this information through the constructor.

Also take a look at LWP::Protocol::https10.

# # $Id: https10.pm,v 1.1 2001/10/26 17:27:19 gisle Exp $ use strict; package LWP::Protocol::https10; # Figure out which SSL implementation to use use vars qw($SSL_CLASS); if ($IO::Socket::SSL::VERSION) { $SSL_CLASS = "IO::Socket::SSL"; # it was already loaded } else { eval { require Net::SSL; }; # from Crypt-SSLeay if ($@) { require IO::Socket::SSL; $SSL_CLASS = "IO::Socket::SSL"; } else { $SSL_CLASS = "Net::SSL"; } }
Examine $LWP::Protocol::https10::SSL_CLASS after creating a HTTPS request, before you request it or something, and make sure it points to Net::SSL

I don't know how significant, but the IO::Socket::SLL pod says

Currently, the IO::Socket::INET interface as implemented by this package is not quite complete. There can be only one SSL context at a given time.

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: Re: Re: Mixing modules, LWP::UserAgent and Net::LDAPS not playing well together. by PodMaster
in thread Mixing modules, LWP::UserAgent and Net::LDAPS not playing well together. by jarich

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.