Actually, openSSL isn't the best place to start if you want Java-specific info. The JSSE Reference Guide
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html
has a good overview of what SSL is and how it works, followed by LOTS of detail on using SSL in Java.
Grant