How to enable SSL DEBUG logs for WSO2 products

Dilsi Chandrasena
1 min readJan 24, 2018

--

  • Use below command, when starting the server.

In Ubuntu

./wso2server.sh -Djavax.net.debug=ssl

In Windows

wso2server.bat -Djavax.net.debug=ssl

  • If we enable SSL DEBUG logs, we couldn’t see any SSL log in wso2carbon.log file.
  • So, to get the SSL DEBUG detail, use below command when starting the wso2 server.

In Ubuntu

nohup ./wso2server.sh -Djavax.net.debug=ssl:handshake &
  • After executing the above command, we can find SSL DEBUG logs from nohup.out file from the bin directory of the server.

In Windows

wso2server.bat -Djavax.net.debug=ssl >Path_To_File\out.txt
  • Use the below command for your reference
wso2server.bat -Djavax.net.debug=ssl >C:\Users\wso2\Documents\File\out.txt
  • You can see the SSL debug logs from out.txt file.

--

--

Dilsi Chandrasena
Dilsi Chandrasena

No responses yet