■ 方法1:'-Djavax.net.debug'オプションを指定する
a) 起動時に、Javaオプション「-Djavax.net.debug=all」を指定する or b) Javaコードに組み込むなら、「System.setProperty("javax.net.debug", "all");」
ファイルに出力するには
* 以下の関連記事を参照のことhttp://blogs.yahoo.co.jp/dk521123/36689096.html
メモ
* 「-Djavax.net.debug=ssl,handshake」などと指定もできるっぽいが、 以下のサイトを見ると他にもSSL関連のオプションがある。http://www.theeggeadventure.com/wikimedia/index.php/Javax.net.debug
参考文献
http://sweng.web.fc2.com/ja/program/java/debug-tls.htmlhttp://codezine.jp/article/detail/105
http://d.hatena.ne.jp/Kazuhira/20141004/1412441208
* Oracleのドキュメント日本語版(ログファイルの見方の参考になる。助かる)
http://docs.oracle.com/javase/jp/7/technotes/guides/security/jsse/ReadDebug.html
https://docs.oracle.com/javase/jp/6/technotes/guides/security/jsse/ReadDebug.html
■ 方法2:Wiresharkで通信をキャプチャリング
* Wiresharkについては、以下の関連記事を参照のこと。http://blogs.yahoo.co.jp/dk521123/31486925.html
参考文献
https://www.scutum.jp/information/waf_tech_blog/2011/10/waf-blog-009.html■ 方法3:openssl s_client機能を使う
* openssl s_client機能については、以下の関連記事を参照のこと。 * オプション(例えば「-state」など)をつける必要あるかもhttp://blogs.yahoo.co.jp/dk521123/35255385.html