Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error decrypting a Postgres .pgpass file #406

Closed
ghost opened this issue Apr 1, 2022 · 1 comment
Closed

Error decrypting a Postgres .pgpass file #406

ghost opened this issue Apr 1, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 1, 2022

Environment

  • OS: Debian 11
  • age version: 1.0.0~rc1 to encrypt 1.0.0 to decrypt

What were you trying to do

I encrypted several secret files and directories using Age 1.0.0~rc1 on a Debian Linux server. I installed age on the server via 'apt install age' (using the default Debian repositories). All of the files and directories decrypted fine on a separate Linux workstation running Age 1.0.0 except for one file. It was the Postgres .pgpass file from the server.

What happened

I used this command to decrypt the file

    age -i key.age -o .pgpass -d pgpass.age

I got this error message:

    Enter passphrase for identity file "key.age": 
    age: error: invalid armor closing line: 
    age: report unexpected or unhelpful errors at https://filippo.io/age/report
@ghost
Copy link
Author

ghost commented Apr 1, 2022

I should have Googled the error first. This is a known issue and the fix suggested here works:

https://gitfreak.com/FiloSottile/age/issues/263

Debian should really package 1.0.0 as I imagine a lot of people will run into this.

@ghost ghost closed this as completed Apr 1, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants