What JRE/JDK are you running?
A few years back my application stopped working with a site as the site switched to their certificates to the Google CA which wasn’t in JRE store. Updating the JRE resolved the issue.
Java has a list of trusted CA (certificate authorities) which can become out of date.