top image
home  /  pages  /  software  /  contact about

Generate a certificate for apache or lighttpd

Problem

You keep forgetting how to create an SSL certificate for apache or lighttpd.

Keywords

openssl, ssl, certificate, apache, apache2, lighttpd

Solution

The follow command creates a certificate valid for 10 years (-days 3650).
openssl req -new -x509 -keyout server.pem -out server.pem -days 3650 -nodes
URL: http://thomer.com/howtos/certificate.html
Copyright © 1994-2008 by Thomer M. Gil
Created: 2007/08/09
Last modified: 2007/08/09