SSLHandshakeException while using AWS SDK for Java API


I’m using the Java API to upload and download files in Amazon S3. It was working perfectly until about a week ago, and it just stopped working altogether even though I hadn’t touched the code. I’m wondering if there’s a solution to this. Thanks!

Over here’s the code that was worked fine:

And here’s the error:

I’d done a bit of research, and some had suggested that the problem could be with the permissions. However, I think I’ve followed the instructions here: as well as I could. I’m really pretty stuck, guys. Thanks, and any help at all will be appreciated!


I had same problem. The solution turned out to be the device wrong date. Try to keep your device date updated. The reason is that SSL certificates have issuance/expiry date that are being verified against your device date.

Leave a Reply