Blame SOURCES/cyrus-imapd-keygen.sh

62c494
#!/bin/sh
62c494
62c494
CERT_FILE="/etc/pki/cyrus-imapd/cyrus-imapd.pem"
62c494
CERT_DIR="/etc/pki/tls/certs"
62c494
62c494
umask 077
62c494
cd "$CERT_DIR"
62c494
62c494
cat << EOF | make cyrus-imapd.pem
62c494
--
62c494
SomeState
62c494
SomeCity
62c494
SomeOrganization
62c494
SomeOrganizationalUnit
62c494
localhost.localdomain
62c494
root@localhost.localdomain
62c494
EOF
62c494
62c494
chown root.mail cyrus-imapd.pem
62c494
chmod 640 cyrus-imapd.pem
62c494
mv cyrus-imapd.pem "$CERT_FILE"