How to use SSL with Passphrase for PostgreSQL?

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

Here, echo is an operating system command that just echos the argument. You will have to escape special characters like or in the password.

How to use SSL with Passphrase for PostgreSQL?

Leave a Reply

Your email address will not be published.