Recently, I encountered a Java exception called bad_record_mac while running a Java software that uses jsoup connection.
After 1 hour of trial and error, I realized the website I am connecting allows only SSL 3.0 which previously is not.
To Solve This:
I added one properties line.
And now jsoup connection is able to connect properly using the correct HTTPS protocol. Note, don’t forget to include your SSL certificate as well when making connection.