How to use SSL with Passphrase for PostgreSQL?
You can set the following PostgreSQL parameters:
ssl = on ssl_cert_file = server.crt ssl_key_file = server.key ssl_passphrase_command = echo mypassword ssl_passphrase_command_supports_reload = on
echo is an operating system command that just echos the argument. You will have to escape special characters like
in the password.