Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGmp0-00083i-Ku for pgsql-admin@arkaria.postgresql.org; Mon, 20 Nov 2017 14:13:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eGmp0-0005fk-2L for pgsql-admin@arkaria.postgresql.org; Mon, 20 Nov 2017 14:13:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eGmoy-0005ef-4t for pgsql-admin@postgresql.org; Mon, 20 Nov 2017 14:13:12 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eGmou-0003lA-NG for pgsql-admin@postgresql.org; Mon, 20 Nov 2017 14:13:10 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 5FE864E0AF; Mon, 20 Nov 2017 15:13:04 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id eVPW-SsNo9QO; Mon, 20 Nov 2017 15:12:58 +0100 (CET) Message-ID: <1511187176.2615.22.camel@cybertec.at> Subject: Re: Restart PostgreSQL service with SSL and private key pass phrase From: Laurenz Albe To: sri bhav , "pgsql-admin@postgresql.org" Date: Mon, 20 Nov 2017 15:12:56 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org sri bhav wrote: > 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. > 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. > 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. Change the security requirements. What good is a password on a key if you have to store it on the machine anyway to allow automatic start of the PostgreSQL server? Yours, Laurenz Albe -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin