This stuff is useful for creating your own Certificate Authority. Based upon stuff found at http://www.camulus.org/openssl/ca/.