I was fiddling a bit with certificates for SSL enabled servers – a situation where I was trying to validate the existing certificate files on our client application.
I stumbled upon a really good collection of examples using openssl – you find it here www.sslshopper.com.