]> granicus.if.org Git - postgresql/commitdiff
Update SSL error message for improper permissions. Backpatch to 7.3.X.
authorBruce Momjian <bruce@momjian.us>
Mon, 23 Dec 2002 22:19:26 +0000 (22:19 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 23 Dec 2002 22:19:26 +0000 (22:19 +0000)
src/backend/libpq/be-secure.c

index 21cefc0207d4f9ff175d5bff0da8597bb55e47e4..aeec1b663d4fab9c6c2d504782117c9ecf6cb2e9 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.15.2.4 2002/12/18 13:20:00 pgsql Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.15.2.5 2002/12/23 22:19:26 momjian Exp $
  *
  *       Since the server static private key ($DataDir/server.key)
  *       will normally be stored unencrypted so that the database
@@ -616,7 +616,9 @@ initialize_SSL(void)
                if (!S_ISREG(buf.st_mode) || (buf.st_mode & 0077) ||
                        buf.st_uid != getuid())
                {
-                       postmaster_error("bad permissions on private key file (%s)", fnbuf);
+                       postmaster_error("bad permissions on private key file (%s)\n"
+"File must be owned by the proper user and must have no permissions for\n"
+"\"group\" or \"other\".", fnbuf);
                        ExitPostmaster(1);
                }
                if (!SSL_CTX_use_PrivateKey_file(SSL_context, fnbuf, SSL_FILETYPE_PEM))