title: Issue calling REST(specifically port 443) from CRON
body: <p>I'm having the darndest trouble trying to perform a REST call from a cron script.</p>
  
  <p>My script works fine as the root user in the terminal, but when I set it up from root CRON, I get the following error:</p>
  
  <pre><code>$VAR1 = 'Can\'t connect to 172.16.250.159:443 (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 /opt/algosec/perl5/lib/perl5/LWP/Protocol/http.pm line 51.
  ';
  </code></pre>
  
  <p>My cron looks like this:</p>
  
  <pre><code>*/5 * * * * /usr/share/fireflow/local/etc/site/lib/pending_ritm_kickoff_script.pl
  </code></pre>
  
  <p>My perl script runs the following:</p>
  
  <pre><code>   my $client = REST::Client-&gt;new({
       hostname =&gt; ''
     });
     my $response = '';
     $client-&gt;addHeader('Content-Type', 'application/json');
     my %rec_hash = (
       'username' =&gt; $username,
       'password' =&gt; $password,
     );
     my $json_body = encode_json(\%rec_hash);
     $client-&gt;POST("$endpoint/APP1/api/authentication/authenticate", "$json_body");
     open(my $fh, '&gt;', '/tmp/cron_report_1.txt');
     print $fh Dumper($client-&gt;responseContent());
     close $fh;
  
     $response = decode_json($client-&gt;responseContent());
  </code></pre>
  
  <p>The client->responseContent is returning the ssl error.
  But the script works fine from terminal! Any assistance is greatly appreciated.</p>