I am trying to deploy the PostgreSQL with CA Signed SSL Certificate and Keys (With passphrase). When I try to start pgsql service, it is expecting the PEM password but it will not work in the interactive way.
Do we have any non-interactive way to provide the SSL passphrase ? (Automatic restart or stop will not work otherwise)
I found this article How to enable SSL in PostgreSQL/PPAS referring to use
pg_ctl start -w
so that the service will ask for the SSL key passphrase.I also found this article PostgreSQL with passphrase-protected SSL keys under systemd saying about the use of
ssl_passphrase_command
but which also in turn asking the PEM passphrase interactively.
Thanks