title: Logstash and logstash-forwarder ssl error
body: <p>I have 2 servers:</p>
  
  <ul>
  <li>logstash server</li>
  <li>app server</li>
  </ul>
  
  <p>If I run a logstash-forwarder on a logstash server - it's ok.</p>
  
  <p>But if I run logstash-forwarder on app server i get an error:</p>
  
  <pre><code>Failed to tls handshake with &lt;ip&gt; x509: certificate has expired or is not yet valid
  </code></pre>
  
  <p>And when I check the certificate by command:</p>
  
  <pre><code>openssl x509 -in logstash-forwarder.crt -noout -text
  </code></pre>
  
  <p>I take a valid certificate:</p>
  
  <pre><code>        ...
          Validity
          Not Before: Jun 28 17:33:36 2015 GMT
          Not After : Jun 27 17:33:36 2016 GMT
          ...
          X509v3 extensions:
          X509v3 Subject Alternative Name: 
              IP Address:&lt;ip&gt;
  </code></pre>
  
  <p>Date on app serve:</p>
  
  <pre><code>root@app:/etc/pki/logstash# date
  Sun Jun 28 20:53:30 MSK 2015
  </code></pre>
  
  <p>What's wrong?</p>