Fork me on GitHub

Generate a SSL certificate without a hassle

openssl req -new -x509 -newkey rsa:1024 -days 3650 -keyout privkey.pem -out server.pem -nodes
openssl rsa -in privkey.pem -out privkey.pem
cat privkey.pem >> server.pem
rm privkey.pem

Source: Install ejabberd

Tags: ssl