I can never remember how to use OpenSSL and reading the OpenSSL man page makes me angry so here's a cheat sheet on how to do basic useful stuff with OpenSSL.

Create a Secure Directory for Certificates

Create Your Own Certificate Authority

Create an unsigned certificate (this is for SSL enabling your service)

Sign Your Certificate With Your CA's Key

Note: I use "-days 3650" which means that the certificate expiress in 10 years as opposed to the normal 1 year. Officially this is a bad thing, but I would rather revoke a cert then deal with them expiring every year.

Configuring Apache

Some daemons and services don't use the older style PEM files (notably Apache and OpenLdap) so you need to do things a little differently. Instead of concatenating signed_req.pem to the end of cert.pem you need to point the daemon at those files directly. Using Apache with ModSsl with a stock DebianLinux setup you would do it like this:

Other Useful Commands

Other Useful Software

I have actually used very little of this, but it's software which I've stumbled across at some point, thought it looked interesting and now have stashed away here for future reference.

See also: http://www.eudora.com/qpopper/faq.html#certs


Just found a cool little Perl/Tk application which takes care of all this for you. It's called TinyCA and can be downloaded here:

Another good OpenSSL howto:

Great walk through by VincentDanen on the linsec wiki:


CategorySoftware

OpenSsl (last edited 2003-10-13 06:01:32 by AdamShand)