Self-signed Apache certificate
From FrugalWiki
This must be done as root.
openssl genrsa -des3 -out server.key 1024
Enter "foobar" twice as passphrase.
openssl req -new -key server.key -out server.csr
Enter "foobar" when asked for passphrase, answer the questions. Leave "challenge password" "and optional company name" empty.
cp server.key server.key.org openssl rsa -in server.key.org -out server.key
Enter "foobar" when asked for passphrase.
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt cp server.crt /etc/httpd/conf/ssl.crt/ cp server.key /etc/httpd/conf/ssl.key/ service httpd stop vi /etc/httpd/conf/httpd.conf
Uncomment the marked three lines around line 1044 (look for "SSL support").
service httpd start
Don't forget to open port 443 on your firewall, if any. (Based on http://www.akadia.com/services/ssh_test_certificate.html , tested on frugalware-current today.)