You can get the source code of JSSE lib (Open JDK implementation) here - http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/file/4d6c03fb1039/src/share/classes/sun/security/ssl
Steps to create a source jar file for attaching to an IDE for debugging.
- Go a little above in the directory structure i.e. to http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/file/4d6c03fb1039/src/share/classes/ repo.
- Download the source package by clicking on the "zip" or "gz" links that you see at the left pane.
- But this package is huge and contains thousands of *.java files. You do not normally want all of these to just debug jsse.jar code.
- So better copy only the sun.security.rsa , sun.security.ssl , sun.security.provider & com.sun.net.ssl packages to a new folder (lets say jsse-code) on your computer.
- Go to that folder from command line & create the source jar on your own.
e.g.
jar -cvf jsse-src.jar *
- You are done. You now have your jsse source lib that you can attach to your preferred IDE (e.g. - Eclipse) to debug the JSSE code.
Thanks
Ayas