Re: ERROR: Corrupt ascii-armor - Mailing list pgsql-general

From Jeff Janes
Subject Re: ERROR: Corrupt ascii-armor
Date
Msg-id CAMkU=1wTd0SqhNihB5EJGywZBnkeZkXhjW=adiPpGD1A_FtqPA@mail.gmail.com
Whole thread Raw
In response to ERROR: Corrupt ascii-armor  (VENKTESH GUTTEDAR <venkteshguttedar@gmail.com>)
List pgsql-general
On Mon, Nov 17, 2014 at 3:00 AM, VENKTESH GUTTEDAR <venkteshguttedar@gmail.com> wrote:

INSERT INTO testuserscards(username, cc)SELECT robotccs.username, pgp_pub_encrypt(robotccs.cc, keys.pubkey) As cc
FROM (VALUES ('robby', '41111111111111111'),
    ('artoo', '41111111111111112') ) As robotccs(username, cc)
     CROSS JOIN (SELECT dearmor('-----BEGIN PGP PUBLIC KEY BLOCK-----
super publickey goobly gook goes here
-----END PGP PUBLIC KEY BLOCK-----') As pubkey) As keys;


Can you simplify that to the simplest case which shows the problem?  Probably just the 'select dearmor(...)'.

It doesn't like something about your public key.  Since you censored that data, there isn't much we can say about what specifically it did not like.

Cheers,

Jeff

pgsql-general by date:

Previous
From: Robert DiFalco
Date:
Subject: String searching
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Performance issue with libpq prepared queries on 9.3 and 9.4