git.schokokeks.org
Repositories
Help
Report an Issue
keks-overlay.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
8c4e5b8
Branches
Tags
master
keks-overlay.git
net-im
jabberd
files
self-cert.sh
A keks * initial commit
Lars Strojny
commited
8c4e5b8
at 2006-12-17 11:28:02
self-cert.sh
Blame
History
Raw
#!/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/jabber/gentoo.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/jabber/gentoo.pem ## Cleanup rm /tmp/privkey.pem echo "" echo "Your new key is /etc/jabber/gentoo.pem" echo ""