title: Perl LWP SSL connection: certificate verify fails
body: <p>My application requires LWP under SSL, but I can't seem to get it to connect properly without receiving an error.</p>
  
  <blockquote>
    <p><code>certificate verify failed)LWP::Protocol::https::Socket: SSL connect attempt failed with unknown error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at C:/Perl/site/lib/LWP/Protocol/http.pm line 51.</code></p>
  </blockquote>
  
  <p>Whenever I load up the website in FireFox on my server, I receive </p>
  
  <blockquote>
    <p><code>This connection is untrusted (Technical error: sec_error_unknown_issuer)</code></p>
  </blockquote>
  
  <p>Whenever I load it up in Chrome, it verifies absolutely fine. </p>
  
  <p>I can load the page up in FireFox and Chrome on my computer and receive no SSL verification errors at all.</p>
  
  <p>I have no clue what is different between my PC and my server; they're both using the exact same FireFox versions so I'm not sure why it wouldn't verify properly on there.</p>
  
  <p>I've tried workarounds by putting in <code>$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0</code> in the Perl script but it seems to throw the same exact error still.</p>
  
  <p><a href="http://pastebin.com/CPp5FbEN" rel="nofollow">This is the script I'm using to test HTTPS</a></p>
  
  <p>Does anyone know any solution to this or any workaround?</p>