Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem with passphrase prompting using gpg2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
archrax
n00b
n00b


Joined: 05 Dec 2011
Posts: 45

PostPosted: Sun Jan 01, 2012 2:23 pm    Post subject: [SOLVED] Problem with passphrase prompting using gpg2 Reply with quote

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
View user's profile Send private message
archrax
n00b
n00b


Joined: 05 Dec 2011
Posts: 45

PostPosted: Sun Jan 01, 2012 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum