Yes, I do receive the "INVALID_LOGIN" response. Here is the full output with the debugging:

DEBUG: .../IO/Socket/SSL.pm:1545: new ctx 20310048 DEBUG: .../IO/Socket/SSL.pm:334: socket not yet connected DEBUG: .../IO/Socket/SSL.pm:336: socket connected DEBUG: .../IO/Socket/SSL.pm:349: ssl handshake not started DEBUG: .../IO/Socket/SSL.pm:379: set socket to non-blocking to enforce + timeout=120 DEBUG: .../IO/Socket/SSL.pm:392: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:402: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:412: waiting for fd to become ready: SSL w +ants a read first DEBUG: .../IO/Socket/SSL.pm:432: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:392: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:402: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:412: waiting for fd to become ready: SSL w +ants a read first DEBUG: .../IO/Socket/SSL.pm:432: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:1533: ok=1 cert=21706288 DEBUG: .../IO/Socket/SSL.pm:1533: ok=1 cert=22023680 DEBUG: .../IO/Socket/SSL.pm:1533: ok=1 cert=22015040 DEBUG: .../IO/Socket/SSL.pm:1533: ok=1 cert=22007520 DEBUG: .../IO/Socket/SSL.pm:1148: scheme=www cert=22007520 DEBUG: .../IO/Socket/SSL.pm:1155: identity=login.salesforce.com cn=log +in.salesforce.com alt=2 login.salesforce.com DEBUG: .../IO/Socket/SSL.pm:392: Net::SSLeay::connect -> -1 DEBUG: .../IO/Socket/SSL.pm:402: ssl handshake in progress DEBUG: .../IO/Socket/SSL.pm:412: waiting for fd to become ready: SSL w +ants a read first DEBUG: .../IO/Socket/SSL.pm:432: socket ready, retrying connect DEBUG: .../IO/Socket/SSL.pm:392: Net::SSLeay::connect -> 1 DEBUG: .../IO/Socket/SSL.pm:447: ssl handshake done DEBUG: .../IO/Socket/SSL.pm:1582: free ctx 20310048 open=20310048 DEBUG: .../IO/Socket/SSL.pm:1587: free ctx 20310048 callback DEBUG: .../IO/Socket/SSL.pm:1590: OK free ctx 20310048 500 Server Error <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv= +"http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.partn +er.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta +nce"><soapenv:Body><soapenv:Fault><faultcode>INVALID_LOGIN</faultcode +><faultstring>INVALID_LOGIN: Invalid username, password, security tok +en; or user locked out.</faultstring><detail><sf:LoginFault xsi:type= +"sf:LoginFault"><sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode><sf +:exceptionMessage>Invalid username, password, security token; or user + locked out.</sf:exceptionMessage></sf:LoginFault></detail></soapenv: +Fault></soapenv:Body></soapenv:Envelope>

This was run with perl v5.14.3 on 64-bit Linux. Since the cert verification will either pass or fail regardless of the payload, you could try an even simpler script such as this:

use strict; use warnings; use LWP::UserAgent; use Mozilla::CA; my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 1, SSL_ca_file => Mozilla::CA::SSL_ca_file() }) or die; my $url = $ARGV[0] || 'https://login.salesforce.com/'; my $res = $ua->get($url); print $res->code . "\n"; exit;

You can then run this with any number of known, good URLs (eg: https://www.google.com/ or https://metacpan.org/ ) to see if any of them pass verification.

Good luck.


In reply to Re^3: SSL Certificate Verification problem, using LWP::UserAgent by hippo
in thread SSL Certificate Verification problem, using LWP::UserAgent by ManyHats

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.