Compilation and Installation
From OpenSSLWiki
Get source code
http://www.openssl.org/source/
Compilation
once you untarred source ( or got it from a source control ) best is to look at README provided in it.
cat README
cat INSTALL
Quick
./config make make test make install