Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCFFF-0001WJ-V5 for pgsql-jdbc@arkaria.postgresql.org; Tue, 16 Oct 2018 02:38:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCFFC-0005cl-3n for pgsql-jdbc@arkaria.postgresql.org; Tue, 16 Oct 2018 02:38:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCFFB-0005cd-SQ for pgsql-jdbc@lists.postgresql.org; Tue, 16 Oct 2018 02:38:01 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gCFF2-00037g-9K for pgsql-jdbc@lists.postgresql.org; Tue, 16 Oct 2018 02:37:59 +0000 Received: by mail-pf1-x433.google.com with SMTP id l17-v6so10653548pff.2 for ; Mon, 15 Oct 2018 19:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=aqd8aAAQ/nXtT40hjf5yF8EZ55jSIJR4BL2gM6T8LD0=; b=qI2lVDLUoz/ZuGP95eiZv1PNCbNoNSfyJS5sgBUaUrQYt0Ca3HvB1B+HLEK5KrYMR9 NBatZHLOREIikqQF2qG3uHX1subRrleF+vTgk+gX0SCZBdJo92fh6YQZJgc+xvxQo14N 0S9DG0WHhu4RcomXcI/OnWwpwpTP4RIhlaOH+c6daXX5W3xYZIoaXdu3N8HamoHWcZ8n gtbxSb6O2MIrho+9mk0DKfWlWopiuhYKwCA2AhgXgy/TxoGTIpiQoSf6l4j9IaCRclza XQP/DkS3BC1BJsvunieKgxbva6Q2OCsWkAmJGx7AdsKBOn8nEuRdI+kZhfnWVYCHWSNJ Ah7Q== 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=aqd8aAAQ/nXtT40hjf5yF8EZ55jSIJR4BL2gM6T8LD0=; b=Zy0V4XhENJ4T8t7dbs1/Q8IrQXcdYcp+wr5JxYXmKgd55cmNwJaKATqFT2OX1ilr6G 4k+Q18chpcSLRFOtVmd4JvdSP+SUVUDs+qzhRdxUWr1FTVp8FXkIcCRpxaFuS8yDC65X N7mSyShPgHsQBoHY0c0bc4Veos67grB2+HmWRP5uXncudjKJLt5Lfj2jDlPWAWgs8Wdp oXgx+s/yHUcCL6BvtwcfSlerb4daSN2tfuu6AREg6jV7+m6CjJxZiQOldPjStt7EGOY7 7cgDMiKSi4a84xDrLTlPXQUlJAM9clga1MLvjo2fTleyInreDOaWEIZbeQhu5xGrxxLo 3EPg== X-Gm-Message-State: ABuFfog6Evs8IBKQMdli2cKMqf/E+rCyn4MWpW1gxJ6seeKs6dGuSTqD kDOn+/rTujCEaxl6thiubck= X-Google-Smtp-Source: ACcGV62fW7iSDo4avmi1vMW0WpMKzqSu3sw2hMajqX71q3HlO33dB5RfgKaF4/zfune6om5enqYyAQ== X-Received: by 2002:a63:40c2:: with SMTP id n185-v6mr18663873pga.116.1539657469659; Mon, 15 Oct 2018 19:37:49 -0700 (PDT) Received: from roblaptop (38.191.220.203.dial.dynamic.acc01-camo-mti.comindico.com.au. [203.220.191.38]) by smtp.gmail.com with ESMTPSA id u65-v6sm18772962pfb.144.2018.10.15.19.37.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 19:37:48 -0700 (PDT) Message-ID: <799161a831b81cb70d38a06e9758af6767ffcb60.camel@gmail.com> Subject: Re: Query related to postgresql jdbc 42.2.5 From: rob stone To: pradeep puppala , pgsql-jdbc@lists.postgresql.org Date: Tue, 16 Oct 2018 13:37:43 +1100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, On Mon, 2018-10-15 at 18:29 +0530, pradeep puppala wrote: > Hi > > I am trying to connect to postgresql database with jdbc postgresql > 42.2.5 with "ssl=true" but I am getting error as below. > > SSL error: sun.security.validator.ValidatorException: PKIX path > building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to > find valid certification path to requested target. > > I am using self signed certificates and jre version is 1.7.0.151. I > am struck here please help. Thanks in advance. > > Best regards > Pradeep This post may provide some clues. https://stackoverflow.com/questions/18378869/pkix-path-building-failed-in-java-application#24705398 OR https://stackoverflow.com/questions/18378869/pkix-path-building-failed-in-java-application#24705398 HTH, Rob