Группа :: Система/Серверы
Пакет: dovecot
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: dovecot-1.0.rc29-alt-mkcert.patch
--- dovecot-1.0.rc29/doc/mkcert.sh.orig 2007-03-29 11:16:46 -0400
+++ dovecot-1.0.rc29/doc/mkcert.sh 2007-03-29 11:19:55 -0400
@@ -4,8 +4,8 @@
# Edit dovecot-openssl.cnf before running this.
OPENSSL=${OPENSSL-openssl}
-SSLDIR=${SSLDIR-/etc/ssl}
-OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}
+SSLDIR=${SSLDIR-/var/lib/ssl}
+OPENSSLCONFIG=${OPENSSLCONFIG-/etc/dovecot/dovecot-openssl.cnf}
CERTFILE=$SSLDIR/certs/dovecot.pem
KEYFILE=$SSLDIR/private/dovecot.pem
@@ -24,16 +24,13 @@
fi
if [ -f $CERTFILE ]; then
- echo "$CERTFILE already exists, won't overwrite"
exit 1
fi
if [ -f $KEYFILE ]; then
- echo "$KEYFILE already exists, won't overwrite"
exit 1
fi
-$OPENSSL req -new -x509 -nodes -config $OPENSSLCONFIG -out $CERTFILE -keyout $KEYFILE -days 365 || exit 2
+echo -n "Generating dovecot SSL certificates:"
+$OPENSSL req -new -x509 -nodes -config $OPENSSLCONFIG -out $CERTFILE -keyout $KEYFILE -days 365 2>/dev/null >/dev/null || exit 2
chmod 0600 $KEYFILE
-echo
-$OPENSSL x509 -subject -fingerprint -noout -in $CERTFILE || exit 2