top image
home  /  pages  /  tech tips  /  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: https://thomer.com/howtos/certificate.html
Copyright © 1994-2022 by Thomer M. Gil
Updated: 2007/08/09