diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2005-04-10 18:10:56 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2005-04-10 18:10:56 +0000 |
commit | 1512ea8962bc1d22a4a50366bec7a2270e301b4a (patch) | |
tree | a346d3914ab6aeb08997a12a7a5bdc1b9bb29b84 /net-im/ejabberd/files | |
parent | gcc-4 fix (diff) | |
download | gentoo-2-1512ea8962bc1d22a4a50366bec7a2270e301b4a.tar.gz gentoo-2-1512ea8962bc1d22a4a50366bec7a2270e301b4a.tar.bz2 gentoo-2-1512ea8962bc1d22a4a50366bec7a2270e301b4a.zip |
added ssl certificate generator script
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-im/ejabberd/files')
-rw-r--r-- | net-im/ejabberd/files/ejabberd-0.7.5.initd | 4 | ||||
-rwxr-xr-x | net-im/ejabberd/files/self-cert.sh | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/net-im/ejabberd/files/ejabberd-0.7.5.initd b/net-im/ejabberd/files/ejabberd-0.7.5.initd index 6a718124b59c..794035aa1b69 100644 --- a/net-im/ejabberd/files/ejabberd-0.7.5.initd +++ b/net-im/ejabberd/files/ejabberd-0.7.5.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-0.7.5.initd,v 1.2 2005/04/08 21:34:06 humpback Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/ejabberd/files/ejabberd-0.7.5.initd,v 1.3 2005/04/10 18:10:56 humpback Exp $ opts="${opts} reload" @@ -21,7 +21,7 @@ checkconfig() { start() { checkconfig || return 1 ebegin "Starting eJabberd" - start-stop-daemon --start --quiet --chuid ejabberd:jabberd \ + start-stop-daemon --start --quiet --chuid ejabberd:jabber \ --exec /usr/bin/env HOME=/var/run/ejabberd /usr/bin/ejabberd -- -noshell -detached eend $? } diff --git a/net-im/ejabberd/files/self-cert.sh b/net-im/ejabberd/files/self-cert.sh new file mode 100755 index 000000000000..2c984fd9dde4 --- /dev/null +++ b/net-im/ejabberd/files/self-cert.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +###### +# +# Generate a certificate and key with no passphrase. +# +###### + +OPENSSL=/usr/bin/openssl + +## This generates the cert and key +$OPENSSL req -new -x509 -newkey rsa:1024 -keyout /tmp/privkey.pem -out /etc/ejabberd/ssl.pem +## This will remove the passphrase +$OPENSSL rsa -in /tmp/privkey.pem -out /tmp/privkey.pem +## Put it all together +cat /tmp/privkey.pem >> /etc/ejabberd/ssl.pem +## Cleanup +rm /tmp/privkey.pem +echo "" +echo "Your new key is /etc/ejabberd/ssl.pem" +echo "" |