Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epyRJ-0003Ju-Io for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 15:42:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epyRH-0007K8-Vo for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 15:42:11 +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 1epyRH-0007Js-7w for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 15:42:11 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epyRD-0004eX-0q for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 15:42:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3B59D20ABC; Sun, 25 Feb 2018 10:42:05 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sun, 25 Feb 2018 10:42:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=t6JT8w9MB5PvRKVoO6tC0MiPY9krq GHfiCbDWGekQT4=; b=aPPfA4R9iGN/4THIIwYOSH99m8yMX+OfZBZB2pfdZKWGz biv4EUGLeVad9JhPODhaC3oAzsxU3JOup18JwiftubJ63ATySvC8PaAfPErcx/xP IlX8fqIob5Vifd0FzH8bHCk1xA3qpbSdBLBBFFtGpuWIsulAS0tjDTY5nDbq2h7r tMmuK4N1yjtylhTem9dalnX4SwkkirAb5n1Hp2YcMh2/KrQViv3YR4Sym/k5kDD3 IsFpXJXpXeUKdYrLNnDhthI8FlN5Jc9w0HQNozVyiqdNeD3xt8cGao2Bc9RuMSG/ DAMrPPjJHP8advNOQ6vnRrlNfefRof76cD4nvICzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=t6JT8w 9MB5PvRKVoO6tC0MiPY9krqGHfiCbDWGekQT4=; b=bknoOqE8ANwZjNJ62UPpM0 hGslEKG1vXMJpv1VfiGN8ETZN/4fEjhcROnutoQ2N31SV/219U34tqC8q08HQ/Cz ohnh1OCotvRQxsyHHop8xiyzpKOfO8Aui6BYCrfDjxQ1eK0Iq6G/DApCAiRlmcIf CDQu+XeXjifJRrfivVegx7P2M5vNI+IMIsQ89rVsEXnBcblnIREdB1F/ZJssflla 8HCzpwpSJBhU24uEobu386LIeoCJulxZck1utWvXN7Uk1lkEoZvF85Qb59BW4ESn dd47q02aCRN0oxWcA//HxUGRNCMTXefqJVyv1nE+/IHS5SBr5K9pKTqk0ZiP07Lg == X-ME-Sender: Received: from [192.168.1.2] (71-35-123-124.tukw.qwest.net [71.35.123.124]) by mail.messagingengine.com (Postfix) with ESMTPA id A83F87E1F4; Sun, 25 Feb 2018 10:42:04 -0500 (EST) Subject: Re: extract properties from certificates To: jotpe , pgsql-general@lists.postgresql.org References: <16680.1519487919@sss.pgh.pa.us> <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de> From: Adrian Klaver Message-ID: <539ae824-fe5d-0942-e438-133b67b105fe@aklaver.com> Date: Sun, 25 Feb 2018 07:42:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/25/2018 12:26 AM, jotpe wrote: > I could compile the pg-cert extension package, but postgresql 9.6 > refused to install it. > > create extension cert; > FEHLER:  geschachteltes CREATE EXTENSION wird nicht unterstützt > means "ERROR: nested CREATE EXTENSION is not supported" > > At line 12 in /usr/share/postgresql/9.6/extension/cert--0.1.1.sql > another extension called bignum is created. > As a short try, I tryed to install in seperatly. I commentent that out, > git cloned the https://github.com/beargiles/pg-bignum project, make and > make install leads to an error, but the extension files are available in > the extensions directory: > >  sudo make install > /bin/mkdir -p '/usr/share/postgresql/9.6/extension' > /bin/mkdir -p '/usr/share/postgresql/9.6/extension' > /bin/mkdir -p '/usr/lib/postgresql/9.6/lib' > /bin/mkdir -p '/usr/share/doc/postgresql-doc-9.6/extension' > /usr/bin/install -c -m 644 .//bignum.control > '/usr/share/postgresql/9.6/extension/' > /usr/bin/install -c -m 644 .//sql/bignum--0.8.0.sql > .//sql/bignum--0.8.0.sql  '/usr/share/postgresql/9.6/extension/' > /usr/bin/install: Neu erstelltes > '/usr/share/postgresql/9.6/extension/bignum--0.8.0.sql' wird nicht mit > './/sql/bignum--0.8.0.sql' überschrieben. > /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk:114: die Regel > für Ziel „install“ scheiterte > make: *** [install] Fehler 1 > > I could not create the bignum extension in my database: > > create extension bignum; > FEHLER:  konnte nicht auf Datei »bignum« zugreifen: Datei oder > Verzeichnis nicht gefunden > means "ERROR: could not access file "bignum": File or directory not found" > > > Has anybody anybody an idea, how to fix this, > or maybe another aproach to extract properties from X.509 certificates? See here: https://github.com/beargiles/pg-bignum/pull/3 in particular: https://github.com/beargiles/pg-bignum/pull/3/commits/d496a091929b15dbc0cc6ece40b0ba7bf091c8ec which changes line 21 in Makefile from DATA = $(wildcard sql/*--*.sql) sql/$(EXTENSION)--$(EXTVERSION).sql to DATA = $(wildcard sql/*--*.sql) This should eliminate this: /usr/bin/install: Neu erstelltes '/usr/share/postgresql/9.6/extension/bignum--0.8.0.sql' wird nicht mit './/sql/bignum--0.8.0.sql' überschrieben. /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk:114: die Regel für Ziel „install“ scheiterte make: *** [install] Fehler 1 and allow the install to complete. > > Beste Regards Johannes > > > > Am 24.02.2018 um 19:07 schrieb jotpe: >> >> >> Am 24.02.2018 um 16:58 schrieb Tom Lane: >>> jotpe writes: >>>> I found the pg-cert extension at https://github.com/beargiles/pg-cert >>>> I have trouble to compile it. When I enter "make" following error >>>> message appears: >>>> Makefile:29: /usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk: >>>> Datei oder Verzeichnis nicht gefunden >>>> make: *** Keine Regel, um >>>> „/usr/lib/postgresql/9.6/lib/pgxs/src/makefiles/pgxs.mk“ zu erstellen. >>>> Schluss. >>> >>>> What am I missing? >>> >>> I'd expect pgxs.mk to be packaged in a postgresql-devel (or >>> postgresql-dev, depending on local culture) subpackage.  Maybe you >>> didn't >>> install that? >> >> Guessed right. postgresql-server-dev-all for debian 9 did it. Thanks. >> >>>             regards, tom lane >>> >> > > -- Adrian Klaver adrian.klaver@aklaver.com