Blame SOURCES/cyrus-imapd-keygen.sh

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