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 1eprdo-0002W3-UJ for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 08:26:41 +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 1eprdn-0000pE-63 for pgsql-general@arkaria.postgresql.org; Sun, 25 Feb 2018 08:26:39 +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 1eprdm-0000p5-Q2 for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 08:26:38 +0000 Received: from mout01.posteo.de ([185.67.36.65]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eprde-00044c-53 for pgsql-general@lists.postgresql.org; Sun, 25 Feb 2018 08:26:36 +0000 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B9CA320DFA for ; Sun, 25 Feb 2018 09:26:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1519547183; bh=9Kl5G1Ee62AVWvKeuFllGPu9pwG0wsdtDlQx4rcD3zA=; h=Subject:To:From:Date:From; b=NmGGx3buu/x1uedg5grslxod6xKVeWzcQOfH74S95iquJQfvZ8MwWtAaD4tWpoaho reWWlYdcQIDv16qxwTgobsuhDMY8Cc8z7ySkLDwZxiGogcH+6voKb+3aSRZFYOjUOV QFMUFg18G9pv1GHzflWaeOTLU9pnv7+3GPyF6YObd8vZba9RdVsYhrF2rXYRqM1Vs4 XOcqWoDzwx/EAl1DUXGFges7tDSyasbbDFZSPXhqXaITQQ+hQrbnhE2WIUMz86wCIy DAZlg1ywk6LIXVKjSNwXdNOjdGM9AladPVDO7rv3eCNUx2C1K4JJweDmTLs+fFOnNO zoP4FqQMx0ZYg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3zpyjB70zRz9rxH for ; Sun, 25 Feb 2018 09:26:22 +0100 (CET) Subject: Re: extract properties from certificates To: pgsql-general@lists.postgresql.org References: <16680.1519487919@sss.pgh.pa.us> From: jotpe Message-ID: <3c0b91e1-7abe-5316-cd3e-65522c0d131f@posteo.de> Date: Sun, 25 Feb 2018 09:26:22 +0100 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: 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 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? 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 >> >