there are some methods:

  1. use openssl such as:

openssl genrsa -out /etc/httpd/conf/ssl.key/myserver.net.key 1024

openssl req -new -key /etc/httpd/conf/ssl.key/myserver.net.key -out /etc/httpd/conf/ssl.csr/myserver.net.key.csr

openssl req -new -key /etc/httpd/conf/ssl.key/myserver.net.key -x509 -out /etc/httpd/conf/ssl.crt/myserver.net.crt -days 999

  1. install crypto-utils

sudo /usr/bin/genkey linuxdict.com –days 1024

follow the instruction, very simple, isn’t it ?

Then you can use your own cert for your application such as apache,postfix and so on.