Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit572d951

Browse files
committed
Update SSL error message for improper permissions. Backpatch to 7.3.X.
1 parent3daad2a commit572d951

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/libpq/be-secure.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.20 2002/12/18 13:15:12 pgsql Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.21 2002/12/23 22:19:00 momjian Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -616,7 +616,9 @@ initialize_SSL(void)
616616
if (!S_ISREG(buf.st_mode)|| (buf.st_mode&0077)||
617617
buf.st_uid!=getuid())
618618
{
619-
postmaster_error("bad permissions on private key file (%s)",fnbuf);
619+
postmaster_error("bad permissions on private key file (%s)\n"
620+
"File must be owned by the proper user and must have no permissions for\n"
621+
"\"group\" or \"other\".",fnbuf);
620622
ExitPostmaster(1);
621623
}
622624
if (!SSL_CTX_use_PrivateKey_file(SSL_context,fnbuf,SSL_FILETYPE_PEM))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp