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 1l32RF-0007I9-3S for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 19:49:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l32RC-000473-5D for pgsql-general@arkaria.postgresql.org; Fri, 22 Jan 2021 19:49:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l32RB-00046k-RL for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 19:49:41 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l32R5-0002WX-Iz for pgsql-general@lists.postgresql.org; Fri, 22 Jan 2021 19:49:41 +0000 Received: by mail-io1-xd33.google.com with SMTP id p72so13540638iod.12 for ; Fri, 22 Jan 2021 11:49:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=1GM7+MezGqInsDLxQ7U4SAVuyEYZ4XjIGwRoLaF1Wn8=; b=sRrMtryLoLi2mhT3sLKKzNt814c6jaDU8OGSf46fuZTkWipjWaD87FDf6M9D3VkAGV +/v/erLMiJJ5mjfqXsZ3d237hjnv7Gni8BcLa6NeE1nvtT8wXfCBBUy43X12Rlfu7m22 RcDKBxHUOpRMrMxgtsKlR0ccxZAIFg68yaEljKZ69WgQZMokukLfSkLOE3GPO2x2fflz KxXvumqcUjZOxTyxybIKLxZu1gJY5kB1ngt1E1+ufBdPJ73fGLNvXbsxduhkdpbDXQLw vdLWEqh2clYyBAH8VSnHwJ4BhFhNQL/IPxAPNoHyUg0utRYC40LGqqGXzEwokYhcz8lJ vbWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=1GM7+MezGqInsDLxQ7U4SAVuyEYZ4XjIGwRoLaF1Wn8=; b=oDBlRPa2aRD+W7CBhk1/JYTqTjdYEuJp40wZvuAR93rA4qVFoEY2v99y303bUY8o3V p2Hgpcf3/Vrnmu2UKDGA5iAawLZRqhhkYJo9fSnNXFodCiwk25cVHjozHPLF7oL8C16m 9pAt+40tbD5kwrSrihDLEzOzzwB9tGu0twKkzfYzxbdS4mZueqaStDh4mYY/cIkVBKNn u2o+URzGarFedE4Qc4TGmtEirHuA3LyXTE7/rxxz/6q8D6AQNPOrpr7XP6y8MJvLuJmD lq5wumlRZMkzSMWeAnTZzHYzUTL77YAvUdiuwf6IVGIMfRRChFA9SmsLA+qPnoqqltAp M6Jw== X-Gm-Message-State: AOAM5318xzSwofZAb021cPGzrOSdmqneaK9MydaaA5ipspK06DH2hM/9 tBa0Omrstr92EtkkRdNzxjWdNpwMH6E= X-Google-Smtp-Source: ABdhPJwxvd4ZfOgp79SbcEe0QCyTYJcMfGECQctA1gyNmxC42DaOD8N1e2vndPokbf19HrgWPB3Gdw== X-Received: by 2002:a6b:ee07:: with SMTP id i7mr4548234ioh.87.1611344973820; Fri, 22 Jan 2021 11:49:33 -0800 (PST) Received: from ?IPv6:2601:681:5500:dde0:5928:5288:3618:3f11? ([2601:681:5500:dde0:5928:5288:3618:3f11]) by smtp.gmail.com with ESMTPSA id m8sm6653143ild.18.2021.01.22.11.49.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jan 2021 11:49:33 -0800 (PST) Subject: Re: localhost ssl To: Adrian Klaver , "pgsql-generallists.postgresql.org" References: <1ca17e3b-14de-69ff-5f0b-4082376571ca@aklaver.com> From: Rob Sargent Message-ID: <73ae4494-3b65-6ecd-b610-9a9ac5c9cce1@gmail.com> Date: Fri, 22 Jan 2021 12:49:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <1ca17e3b-14de-69ff-5f0b-4082376571ca@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > > Also I'm guessing you have ssl = on in postgresql.conf and server cert > setup. Sorry, here's a likely explaination from postgresql.conf ssl = on #ssl_ca_file = '' ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem' #ssl_crl_file = '' ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' I have no recollection of making those choices (or what I had for breakfast). > > If you want to enforce SSL then: > > " > hostssl > >     This record matches connection attempts made using TCP/IP, but only > when the connection is made with SSL encryption. Do you have any thoughts on question #2?