Personal Knowledge Base
Wednesday, January 25, 2017
force https post use TLS version 1.2
String protocol = "TLSv1.2"; try { SSLContext ctx5 = SSLContext.getInstance(protocol); ctx5.init(null, null, null); SSLContext.setDefault(ctx5); System.out.println("get default.."); } catch (Exception e) { System.out.println("could not set"); }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment