File dovecot-2.2.25-umask_for_mkcert.patch of Package dovecot22.openSUSE_Leap_42.2_Update
Index: dovecot-2.2.25/doc/mkcert.sh
===================================================================
--- dovecot-2.2.25.orig/doc/mkcert.sh
+++ dovecot-2.2.25/doc/mkcert.sh
@@ -3,6 +3,7 @@
# Generates a self-signed certificate.
# Edit dovecot-openssl.cnf before running this.
+umask 077
OPENSSL=${OPENSSL-openssl}
SSLDIR=${SSLDIR-/etc/ssl}
OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}