aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-12-23 22:19:00 +0000
committerBruce Momjian <bruce@momjian.us>2002-12-23 22:19:00 +0000
commit572d95150eea44d5916cf4d01ba86c21c4efb7d7 (patch)
tree7aa53d004e24a1ccce97492d2699339017eaf0c1 /src
parent3daad2ae913208c4bb873aec800725c4dd3c4642 (diff)
downloadpostgresql-572d95150eea44d5916cf4d01ba86c21c4efb7d7.tar.gz
postgresql-572d95150eea44d5916cf4d01ba86c21c4efb7d7.zip
Update SSL error message for improper permissions. Backpatch to 7.3.X.
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/be-secure.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c
index a501df64d54..5b031214550 100644
--- a/src/backend/libpq/be-secure.c
+++ b/src/backend/libpq/be-secure.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.20 2002/12/18 13:15:12 pgsql Exp $
+ * $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.21 2002/12/23 22:19:00 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))