mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 00:11:21 +02:00
Support SSL certificate chains in the server certificate file.
Andrew Gierth
This commit is contained in:
parent
723476c72e
commit
d9ebc8822b
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.90 2009/01/28 15:06:47 mha Exp $
|
* $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.91 2009/05/11 08:06:21 mha Exp $
|
||||||
*
|
*
|
||||||
* Since the server static private key ($DataDir/server.key)
|
* Since the server static private key ($DataDir/server.key)
|
||||||
* will normally be stored unencrypted so that the database
|
* will normally be stored unencrypted so that the database
|
||||||
@ -729,9 +729,8 @@ initialize_SSL(void)
|
|||||||
/*
|
/*
|
||||||
* Load and verify certificate and private key
|
* Load and verify certificate and private key
|
||||||
*/
|
*/
|
||||||
if (SSL_CTX_use_certificate_file(SSL_context,
|
if (SSL_CTX_use_certificate_chain_file(SSL_context,
|
||||||
SERVER_CERT_FILE,
|
SERVER_CERT_FILE) != 1)
|
||||||
SSL_FILETYPE_PEM) != 1)
|
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
(errcode(ERRCODE_CONFIG_FILE_ERROR),
|
(errcode(ERRCODE_CONFIG_FILE_ERROR),
|
||||||
errmsg("could not load server certificate file \"%s\": %s",
|
errmsg("could not load server certificate file \"%s\": %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user