unix 2015-08-06 20-57-57
#Как сгенерировать сертификат для ejabberd?
openssl req -new -x509 -newkey rsa:2048 -days 3650 -keyout privkey.pem -out server.pem
openssl rsa -in privkey.pem -out privkey.pem
cat privkey.pem >> server.pem
rm privkey.pem
chown ejabberd server.pem
chmod 600 server.pem
/etc/init.d/ejabberd restart