View previous topic :: View next topic |
Author |
Message |
archrax n00b
Joined: 05 Dec 2011 Posts: 45
|
Posted: Sun Jan 01, 2012 2:23 pm Post subject: [SOLVED] Problem with passphrase prompting using gpg2 |
|
|
Hi guys,
I'm trying to perform a symmetric encryption.
Code: | $ gpg --output out.gpg --symmetric in.txt |
I get the following error;
Code: | pinentry-curses: no LC_CTYPE known |
After reading around, I put this in my .bashrc
Code: | export GPG_TTY='tty' |
Then I got the following error;
Code: |
gpg-agent[2556]: command get_passphrase failed: Operation cancelled
gpg: cancelled by user
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of `in.txt' failed: Operation cancelled
|
The problem seems to lie with prompting for a passphrase. I seem to get the same error when I try to decrypt an already encrypted document.
Any ideas?
Last edited by archrax on Sun Jan 01, 2012 6:17 pm; edited 1 time in total |
|
Back to top |
|
|
archrax n00b
Joined: 05 Dec 2011 Posts: 45
|
Posted: Sun Jan 01, 2012 6:12 pm Post subject: |
|
|
Hmm.
Changed .bashrc to
Code: |
GPG_TTY=$(tty)
export GPG_TTY
|
Rebooted.
Works fine now, though I've not really changed anything.
Hate it when that happens. |
|
Back to top |
|
|
|