LoginSignup
20
21

More than 5 years have passed since last update.

Java での SSL3.0 無効化

Posted at

Java7

java.net.URLConnection を使っている場合

以下のプロパティを指定する。

  • https.protocols=TLSv1,TLSv1.1,TLSv1.2

HttpClient を使っている場合

クラス SSLConnectionSocketFactory にプロトコルを指定して、HttpClient に渡す。
http://stackoverflow.com/questions/26429751/java-http-clients-and-poodle

Java8

以下のプロパティを指定する。

  • https.protocols=TLSv1,TLSv1.1,TLSv1.2
  • jdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2
20
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
21