Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBfj5-0003UX-21 for pgsql-general@arkaria.postgresql.org; Mon, 15 Feb 2021 15:23:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lBfj3-00063i-MA for pgsql-general@arkaria.postgresql.org; Mon, 15 Feb 2021 15:23:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBfj3-00063a-9P for pgsql-general@lists.postgresql.org; Mon, 15 Feb 2021 15:23:49 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lBfiz-0006q2-Q1 for pgsql-general@lists.postgresql.org; Mon, 15 Feb 2021 15:23:48 +0000 Received: by mail-ed1-x52f.google.com with SMTP id h10so3796369edl.6 for ; Mon, 15 Feb 2021 07:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=f8Cj3FnAXxi3VQv53rhUZb6gaXsjFGfF37zoHhQICaI=; b=sHIytFtunWR5dB+sqPdA7N4Kb0Oo+SwJAVrWdj+mAD/dasqkqECX01bp/03VQfBLMP 2dN7ssfv3BODncInBKIPxB/DAU216imgOcJ/J6YvVDLfTAxriWKzJlg8P8kUbaWFuqg1 C/7MWNyEPig6m68qHgG6Ub/T9fg8qAoVf2B0mwMYLACCsJAzYqEad0hRUVH7aGiNEGkC xRemoRhzM5gDOJ3sqy1oX3+EVfIw+71ewN0PGHC2Zvd5c/ifnoJw5gl+a+Q7+j/kj0vn 4lzp9bKIY6he5sMr/o+PuMatzegeX05QvkRgz56hAuJAdGX9m+i9AXA6usM2wy5tfhvL 3D2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=f8Cj3FnAXxi3VQv53rhUZb6gaXsjFGfF37zoHhQICaI=; b=EVlSoHwJj91YZP9N6B3NbZQQ06LKxMWbR283HyQ1cprMPY+bRghSZkCySRaoASjdrF TwXXW7Q75X4bofMp6s7TYFYMmiQJ71iEcXNxlH/2FJmNOIiBvUrqy2pYgoyF3cGJDWtL B7KZaGT3AiUThP2TcXp6g5TiQJma4prOPtfhE2unUtdOnE760B0nA+CdGSf7C9MSc5QJ 6SGTTCczdZI2FXVR12nkvUHmmrFcARiyoivQnUh57qSm9lKNRnk55nw6W+ArKpvZYhFO aewwOmkAZBbnSWsB944cJU9xY56p+msDJqkzHpEwUgmFDb19QGOh4XMoRhm/vhJz1snV fqiw== X-Gm-Message-State: AOAM531ApDAKl+IMl3Zd0zuteAr4rSriJ5H8pZ4nMMRTYGiq6dqDBU3E +xcHWqVmHPrLs3zSVieinOd/Gw== X-Google-Smtp-Source: ABdhPJyyi7xc9ZZcCfossUVxiZ6n3t7B4s3kxSaPf6EZh1C3sBhx4KHUsMGyF5dUqgsgnij9YbEutg== X-Received: by 2002:a05:6402:35ca:: with SMTP id z10mr16186328edc.186.1613402622929; Mon, 15 Feb 2021 07:23:42 -0800 (PST) Received: from localhost.localdomain (217-149-170-190.nat.highway.telekom.at. [217.149.170.190]) by smtp.gmail.com with ESMTPSA id kz4sm10761780ejc.38.2021.02.15.07.23.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 07:23:42 -0800 (PST) Message-ID: <8adec105140aebabf0814880fd88d3ed8fac8c3e.camel@cybertec.at> Subject: Re: certs in connection string From: Laurenz Albe To: Rob Sargent , "pgsql-generallists.postgresql.org" Date: Mon, 15 Feb 2021 16:23:41 +0100 In-Reply-To: <89C60392-DFF9-4C1A-BB0D-DD54608F2AA5@gmail.com> References: <89C60392-DFF9-4C1A-BB0D-DD54608F2AA5@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, 2021-02-13 at 09:57 -0700, Rob Sargent wrote: > I’m confused, as usual, about using a cert in a connection string. I wish to connect form a > “middle ware” piece to PG on be half of various clients. Does each client need a corresponding > cert/key or is the certification intended to say the sending machine is who it says it is > (thereby needing only one cert) They can share one certificate. https://www.postgresql.org/docs/current/auth-cert.html: When using this authentication method, the server will require that the client provide a valid, trusted certificate. No password prompt will be sent to the client. The cn (Common Name) attribute of the certificate will be compared to the requested database user name, and if they match the login will be allowed. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com