From LedHed's Wiki
To create a Self Signed SSL Certificate:
openssl req -x509 -nodes -newkey rsa:1024 -keyout \ /etc/ssl/private/yourcert.pem \ -out /etc/ssl/private/yourcert.pem
This creates a 1024 bit Encrypted certificate.
To create a Self Signed SSL Certificate:
openssl req -x509 -nodes -newkey rsa:1024 -keyout \ /etc/ssl/private/yourcert.pem \ -out /etc/ssl/private/yourcert.pem
This creates a 1024 bit Encrypted certificate.