title: AWS S3 peer not authenticated
body: <p>I am using the <code>AWS Java SDK</code> in an application that uploads small files about once a minute to <code>S3</code>. The application has been running uninterrupted for two weeks, but had two major periods in which uploads throw an <code>SSL-related</code> <code>peer not authenticated</code> error.</p>
  
  <p>The first period lasted about three days. It wasn't abrupt; but "sputtered out" as more and more uploads threw exceptions until it was doing none within a few minutes.</p>
  
  <p>The second period began about a week ago and has not ended.</p>
  
  <p>On the <code>AWS</code> forum, an Amazon employee seems to <a href="https://forums.aws.amazon.com/thread.jspa?messageID=283360&amp;#283360" rel="noreferrer">recommend solving this problem</a> by not validating Amazon's certificate.</p>
  
  <p>Please explain if I've misunderstood this, or what else I should try.</p>