How to set up your own Certification Authority (CA) (2013)
jamielinux.com
jamielinux.com
Other instructions on this site include setting up an intermediate CA using a similar process and details of the signing process. Great info, anyways.
I'd really love to see a continually updated set of best practices for using OpenSSL for a variety of tasks, like creating a CA, intermediate cert, cert for ssl/tls, etc
[1] https://github.com/OpenVPN/easy-rsa/blob/master/doc/EasyRSA-...
It includes a HTTP interface for issuing certs and an OCSP responder.