|
If you use a properties file to configure your application then set
these two properties properties based on your version of java being
used (examples below). If you don't use a properties file then you
will need to figure out a good place in your code to set these two
properties or set them from the command line. The document your
referenced has what you needed other than it skipped over the least
used property but the one probably most relevant to your situation.
Java 7+
https.protocols=" TLSv1.2,TLSv1.1,TLSv1 "
jdk.tls.client.protocols=" TLSv1.2,TLSv1.1,TLSv1 "
SSLSocket s = (SSLSocket)factory.createSocket(adr, port);
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.