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 1lF4Da-0006b3-Jy for pgsql-jdbc@arkaria.postgresql.org; Thu, 25 Feb 2021 00:09:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lF4DY-0002ku-Qq for pgsql-jdbc@arkaria.postgresql.org; Thu, 25 Feb 2021 00:09:20 +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 1lF4DY-0002km-JK for pgsql-jdbc@lists.postgresql.org; Thu, 25 Feb 2021 00:09:20 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lF4DR-0005MK-BX for pgsql-jdbc@lists.postgresql.org; Thu, 25 Feb 2021 00:09:19 +0000 Received: by mail-il1-x129.google.com with SMTP id q9so3410711ilo.1 for ; Wed, 24 Feb 2021 16:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=9CsuwK7ggTJ2AteZCs9QAIYJ6cjGH9++bM+aTzwdqcA=; b=gLL6Tw3N24oLJoYtr7BJUYovfBTrAxg7e2CkTKligahZVsNzcsHY6yiefWySpOC7tI wb+vNZAqs6ZD/ch5LvEP0qtxfPA7omTEmJBkN/2XP/jARg4S4c9HaE6SgJIjnx5zYSBD 4HiADjVChXehmZIx16ytjlPTcnn/+BpitHU+EIjGteFgLd84d+ys9f5/gjA98W4eAffk 9SiG4PCLilDzllx7QzWtN5WNCgoQPRbN03hC1ZWBO7btB/ghvd1LWWOJp6mNu6YmjfZT SzIGJNIxxnhRLzpSYSPRGB1Ao4ZfRQJQKPnwpimvGZ+JDs66q1vXjRIJ39GJMbkCcbpn BBIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9CsuwK7ggTJ2AteZCs9QAIYJ6cjGH9++bM+aTzwdqcA=; b=rkUdlcTOJN+tpRufMhKbjPPXXckjeDY65MBKT3nAfB7/mIgbravIK3O0LJOVHF5JKI Zo3DiYu6H9hMp4eOrB19COyuSuuz9zVUkc1FGlOrsfog2Q/jYgxSqspkbwJ6Ov9WaSbw fG65bVwxO8oBvPros21Uvkw4cW5lJG7dlQ5YvYgrixFmWXPJaRZkW0Tjs+wjwKwNke5o hiycnlY7dx4rS3B5+kmktpsB0+ggSMOyx7Q06TEZurUHFPu9Sy6lpoVlUeS/ZAsk/4nq riurt6XbD82g3ex41VSBdzWkbSp6YW6/FdOyeZs71ARztwKr4+xB8n299dmJ+Ji/LLwh fHJA== X-Gm-Message-State: AOAM533Fe68AQ067qycJJmm1sbOWJtv10McPwtmhaOhfdwhKfBQ7S0IK Lggq3gNeUFXzYRuCt8VGNu/OE9V6Qak= X-Google-Smtp-Source: ABdhPJy9Sx6UW8c3uVKQWetuazoIR80r3zSMuNZjo3XwRJH6Nwpr5+fSsbsEZbfMAIyodUFFsYZZaQ== X-Received: by 2002:a05:6e02:d4e:: with SMTP id h14mr232571ilj.80.1614211751618; Wed, 24 Feb 2021 16:09:11 -0800 (PST) Received: from ?IPv6:2601:681:5500:dde0:808f:3374:6e8d:3710? ([2601:681:5500:dde0:808f:3374:6e8d:3710]) by smtp.gmail.com with ESMTPSA id i8sm2213856ilv.57.2021.02.24.16.09.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Feb 2021 16:09:11 -0800 (PST) Subject: Re: PEM to PKCS12 From: Rob Sargent To: pgsql-jdbc@lists.postgresql.org References: Message-ID: Date: Wed, 24 Feb 2021 17:09:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I continue to forget the PKCS is a store, not a cert. Using the cert therein and the world is happy. The proposal is withdrawn. On 2/24/21 4:20 PM, Rob Sargent wrote: > Given PEM from AWS/RDS, which appear to me to include only the > certificate, here's what I did to get to PKCS12 format > > keytool -import -alias rds-root -keystore root.jks -file rds.pem > keytool -importkeystore -srckeystore root.jks -destkeystore root.p12 > -deststoretype pkcs12 > > Is this expected in general (not RDS specific)? If so I would like to > add these instrux to connect.md. > > Or is this even correct? Handing the created .p12 file to the connection > url > (sslkey=/full/path/root.p12&sslpassword=x&sslmode=verify-full) > does not seem to be taking effect. I get could not find > "/home/ec2-user/.postgresql/root.crt" > which is NOT the full/real path > > > >