pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ponnam, Bhavani <Bhavani.Ponnam@Stryker.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: start/restart PostgreSQL service with SSL enabled
Date: Thu, 5 Oct 2017 19:52:53 +0000
Message-ID: <DM5PR01MB2731C942883BB83C91AC278C83700@DM5PR01MB2731.prod.exchangelabs.com> (raw)
In-Reply-To: <DM5PR01MB2731BE4DE42A15FC48D5B53983700@DM5PR01MB2731.prod.exchangelabs.com>
References: <DM5PR01MB2731BE4DE42A15FC48D5B53983700@DM5PR01MB2731.prod.exchangelabs.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi,
      I currently have PostgreSQL 9.5 installed on a Windows 10 machine. I have enabled SSL and configured key & crt files with pass phrase. I know that I have to enter the PEM pass phrase everytime I try to restart. So I tried using pg_ctl to start Postgres, but I have few issues:

  1.  Since I installed Postgres as Windows service, running pg_ctl does not start my service. I see postgresql exe instances running in Task manager but my windows service never gets updated to Running.
  2.  After running the following command:

pg_ctl -D "c:\Program Files\PostgreSQL\9.5\data" restart -w

I was able to enter the PEM pass phrase since I got a prompt and was able to connect. But when my application is trying to establish the connection with Postgresql, the application is waiting since there are prompts on the command windows where I executed the pg_ctl command to enter the PEM pass phrase. I think this makes the application totally unusable.

  1.  Per our security requirements, we cannot remove the PEM pass phrase, so how do I control the PostgreSQL service - start & restart with the pass phrase and without user interaction.



Please advise on how to achieve what I am doing or share any alternatives that someone already has for this situation.

Thank you

view thread (3+ messages)  latest in thread

Message-ID: <DM5PR01MB2731C942883BB83C91AC278C83700@DM5PR01MB2731.prod.exchangelabs.com>
Permalink:  ../DM5PR01MB2731C942883BB83C91AC278C83700@DM5PR01MB2731.prod.exchangelabs.com/
Also on:    postgresql.org/message-id/DM5PR01MB2731C942883BB83C91AC278C83700@DM5PR01MB2731.prod.exchangelabs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Bhavani.Ponnam@Stryker.com
  Subject: Re: start/restart PostgreSQL service with SSL enabled
  In-Reply-To: <DM5PR01MB2731C942883BB83C91AC278C83700@DM5PR01MB2731.prod.exchangelabs.com>
  References: <DM5PR01MB2731BE4DE42A15FC48D5B53983700@DM5PR01MB2731.prod.exchangelabs.com> <DM5PR01MB2731C942883BB83C91AC278C83700@DM5PR01MB2731.prod.exchangelabs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox