mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
Add ssl_passphrase_command setting
This allows specifying an external command for prompting for or otherwise obtaining passphrases for SSL key files. This is useful because in many cases there is no TTY easily available during service startup. Also add a setting ssl_passphrase_command_supports_reload, which allows supporting SSL configuration reload even if SSL files need passphrases. Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
@@ -80,6 +80,8 @@ extern char *ssl_key_file;
|
||||
extern char *ssl_ca_file;
|
||||
extern char *ssl_crl_file;
|
||||
extern char *ssl_dh_params_file;
|
||||
extern char *ssl_passphrase_command;
|
||||
extern bool ssl_passphrase_command_supports_reload;
|
||||
|
||||
extern int secure_initialize(bool isServerStart);
|
||||
extern bool secure_loaded_verify_locations(void);
|
||||
@@ -101,4 +103,10 @@ extern char *SSLCipherSuites;
|
||||
extern char *SSLECDHCurve;
|
||||
extern bool SSLPreferServerCiphers;
|
||||
|
||||
/*
|
||||
* prototypes for functions in be-secure-common.c
|
||||
*/
|
||||
extern int run_ssl_passphrase_command(const char *prompt, bool is_server_start,
|
||||
char *buf, int size);
|
||||
|
||||
#endif /* LIBPQ_H */
|
||||
|
||||
Reference in New Issue
Block a user