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

Commitd9ebc88

Browse files
committed
Support SSL certificate chains in the server certificate file.
Andrew Gierth
1 parent723476c commitd9ebc88

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.90 2009/01/28 15:06:47 mha Exp $
14+
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.91 2009/05/11 08:06:21 mha Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -729,9 +729,8 @@ initialize_SSL(void)
729729
/*
730730
* Load and verify certificate and private key
731731
*/
732-
if (SSL_CTX_use_certificate_file(SSL_context,
733-
SERVER_CERT_FILE,
734-
SSL_FILETYPE_PEM)!=1)
732+
if (SSL_CTX_use_certificate_chain_file(SSL_context,
733+
SERVER_CERT_FILE)!=1)
735734
ereport(FATAL,
736735
(errcode(ERRCODE_CONFIG_FILE_ERROR),
737736
errmsg("could not load server certificate file \"%s\": %s",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp