From: Bruce Momjian Date: Mon, 23 Dec 2002 22:19:26 +0000 (+0000) Subject: Update SSL error message for improper permissions. Backpatch to 7.3.X. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=97d41ee370de64349bfe79f2f42c556d0f8a95c6;p=users%2Fbernd%2Fpostgres.git Update SSL error message for improper permissions. Backpatch to 7.3.X. --- diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c index 72c14294ae..be9897d456 100644 --- a/src/backend/libpq/be-secure.c +++ b/src/backend/libpq/be-secure.c @@ -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))