How to set up an Apache2 + OpenSSL environment

Recently I was trying to configure a SSL site working on a localhost. The whole point was to configure the Apache2 to work with the SSL and I found this site to be particular useful why trying to solve this problem.