Hi Bil,
I've added the LWP::DEBUG and set the $ENV{HTTPS_DEBUG} = 1;
here is the output i got: (still on https://www.magnusadventures.com/).
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET https://www.magnusadventures.com/
LWP::UserAgent::_need_proxy: Not proxied
LWP::UserAgent::send_request: https URLs are among
LWP::UserAgent=HASH(0x17ab1a0)'s allowed protocols (http https ftp)
LWP::Protocol::http::request: ()
SSL_connect:before/connect initialization
SSL_connect:SSLv2/v3 write client hello A
SSL_connect:SSLv3 read server hello A
SSL3 alert write:fatal:unknown CA
SSL_connect:error in SSLv3 read server certificate B
SSL_connect:error in SSLv3 read server certificate B
SSL_connect:before/connect initialization
SSL_connect:SSLv3 write client hello A
SSL_connect:SSLv3 read server hello A
SSL3 alert write:fatal:bad certificate
SSL_connect:error in SSLv3 read server certificate B
SSL_connect:before/connect initialization
SSL_connect:SSLv2 write client hello A
SSL_connect:error in SSLv2 read server hello B
LWP::UserAgent::request: Simple response: Internal Server Error
You can see that it reports "Bad Certificate" and "Unknown CA".
Any idea?
On 1/13/08, Bill Luebkert <[EMAIL PROTECTED]> wrote:
>
> eyal edri wrote:
> > Hi,
> >
> > i'm using LWP::UserAgent & Crypt:SSLeay to fetch pages from the web
> > (https also).
> > i was trying to fetch the url : https://www.magnusadventures.com/
> > <https://www.magnusadventures.com/>
> > and I've lwp returned the following error:
> > 500 SSL negotiation failed: error:1407E086:SSL
> > routines:SSL2_SET_CERTIFICATE:certificate verify failed
> >
> > i've surfed manually to the web site (via firefox) and found out that
> > it's certificate has expired,.
> > Nevertheless, i was able to tell the browser that i trust this site and
> > was able to surf it in the end.
> >
> > my question is, can i force lwp to handle all sites, regardless if they
> > have a valid certificate or not?
>
> Works ok for me. Just as a wild guess, try :
>
> cd C:/perl/site/lib/auto/Crypt/SSLeay (or whatever drive it's on)
> perl <drive:/path/script.pl> <URL> (or whatever the args are)
> (use \ instead of / if
> using M$ shell)
>
> make sure your PATH ENV vrbl has '.' as the first entry.
>
> You could be picking up a DLL from elsewhere and hopefully this will get
> the Perl version. Also make sure SSLeay.dll is there.
>
>
--
Eyal Edri
_______________________________________________
Perl-Unix-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs